--- test/run-in-tree.sh.orig	2015-03-20 13:38:24.000000000 -0700
+++ test/run-in-tree.sh	2015-03-20 13:44:32.000000000 -0700
@@ -23,7 +23,8 @@
         DBUS_CONF=`dirname $0`/session.conf
     fi
 
-    PIDFILE=`mktemp`
+    tempfoo=`basename $0`
+    PIDFILE=`mktemp /tmp/${tempfoo}.XXXXXX`
     export DBUS_SESSION_BUS_ADDRESS=`dbus-daemon --config-file=$DBUS_CONF --fork --print-address=1 --print-pid=3 3>${PIDFILE}`
     DBUS_SESSION_BUS_PID=`cat $PIDFILE`
     rm $PIDFILE
