Use test binaries in build dir to do test
authorChengwei Yang <chengwei.yang@intel.com>
Fri, 13 Sep 2013 08:56:26 +0000 (16:56 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 13 Sep 2013 13:29:45 +0000 (14:29 +0100)
commitee0f28f6a575337fe6d0571f5935f82a601c37c9
tree7d2bd64649ef210648f04c96d5985ec9c97a5a8d
parent2cf320fc82593fd1b3c71688f770e443366780ec
Use test binaries in build dir to do test

When do autolaunch testing, libdbus will try to start dbus-launch in
installed direcotry, if fail then fall back to dbus-launch in $PATH.
dbus-launch does a relative better thing to start dbus-daemon in build
directory, however, in most of case, the build $prefix is different from
the real prefix where dbus-daemon installed. So dbus-daemon will fail to
start due to can't find its config file. And then dbus-launch will fall
back to finally the installed dbus-daemon.

This patch fix this behavior and will start dbus-launch and dbus-daemon
in build directory in test environment.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37849
configure.ac
dbus/dbus-sysdeps-unix.c
test/name-test/Makefile.am
tools/dbus-launch.c