summaryrefslogtreecommitdiff
path: root/bus/test-launch-helper.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2015-11-24 01:19:27 +0000
committerSimon McVittie <smcv@debian.org>2015-12-02 18:51:08 +0000
commitae533ae9b9e3b0b527cc06879755d6b944141060 (patch)
tree696d0aededaa553b87d80bc67771234d37fe43dc /bus/test-launch-helper.c
parenta6d7455a702af018ebd751af58f4526d1f372e23 (diff)
downloaddbus-ae533ae9b9e3b0b527cc06879755d6b944141060.tar.gz
embedded tests: accept and ignore --tap argument
This makes them semi-command-line-compatible with a way we can invoke the GLib-based tests to get more useful debug logs. These tests still do not actually produce TAP output yet; I tried implementing that, but it requires changing a lot of noise on stdout to come out of stderr, and there was something weird going on with subprocesses restarting the test numbering which will need further investigation before making that change. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93194 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'bus/test-launch-helper.c')
-rw-r--r--bus/test-launch-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/test-launch-helper.c b/bus/test-launch-helper.c
index e9ba412a..c58d06eb 100644
--- a/bus/test-launch-helper.c
+++ b/bus/test-launch-helper.c
@@ -102,7 +102,7 @@ main (int argc, char **argv)
const char *dir;
DBusString config_file;
- if (argc > 1)
+ if (argc > 1 && strcmp (argv[1], "--tap") != 0)
dir = argv[1];
else
dir = _dbus_getenv ("DBUS_TEST_DATA");