summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-test-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-test-main.c')
-rw-r--r--dbus/dbus-test-main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dbus/dbus-test-main.c b/dbus/dbus-test-main.c
index 8ed77cce..301021ee 100644
--- a/dbus/dbus-test-main.c
+++ b/dbus/dbus-test-main.c
@@ -31,6 +31,13 @@ int
main (int argc,
char **argv)
{
- dbus_internal_symbol_do_not_use_run_tests ();
+ const char *test_data_dir;
+
+ if (argc > 1)
+ test_data_dir = argv[1];
+ else
+ test_data_dir = NULL;
+
+ dbus_internal_symbol_do_not_use_run_tests (test_data_dir);
return 0;
}