summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-16 13:47:19 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-10-08 11:06:18 +0100
commitf81cd4a18b9247760341c711a401947bad04698d (patch)
tree5e18ff5d899f1a69cc023fb45903a3f7e1d41dbe /tools
parent580ed1c8fb3cbfb4a8071a7db8a802f14df3890b (diff)
When using dbus-launch for tests, fail hard if test binary is missing
We want to test the version-under-test, not the system version. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37849 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-launch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 3899d6d6..050bd2fa 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -1154,8 +1154,9 @@ main (int argc, char **argv)
NULL);
fprintf (stderr,
- "Failed to execute test message bus daemon %s: %s. Will try again with the system path.\n",
+ "Failed to execute test message bus daemon %s: %s.\n",
TEST_BUS_BINARY, strerror (errno));
+ exit (1);
}
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */