Commit ae533ae9 authored by Simon McVittie's avatar Simon McVittie

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=93194Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
parent a6d7455a
......@@ -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");
......
......@@ -95,7 +95,7 @@ main (int argc, char **argv)
progname = argv[0];
if (argc > 1)
if (argc > 1 && strcmp (argv[1], "--tap") != 0)
dir = argv[1];
else
dir = _dbus_getenv ("DBUS_TEST_DATA");
......
......@@ -73,7 +73,7 @@ main (int argc, char **argv)
progname = argv[0];
if (argc > 1)
if (argc > 1 && strcmp (argv[1], "--tap") != 0)
dir = argv[1];
else
dir = _dbus_getenv ("DBUS_TEST_DATA");
......
......@@ -51,7 +51,7 @@ main (int argc,
setlocale(LC_ALL, "");
#endif
if (argc > 1)
if (argc > 1 && strcmp (argv[1], "--tap") != 0)
test_data_dir = argv[1];
else
test_data_dir = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment