]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
When using dbus-launch for tests, fail hard if test binary is missing
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 16 Sep 2013 12:47:19 +0000 (13:47 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 8 Oct 2013 10:06:18 +0000 (11:06 +0100)
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>
tools/dbus-launch.c

index 3899d6d6736c1f29311c1e2ac330403e914b4790..050bd2faeabcd4af8c4e840d6460f867a002081d 100644 (file)
@@ -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 */