summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-test.c')
-rw-r--r--dbus/dbus-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c
index 76776a95..19d6d7cd 100644
--- a/dbus/dbus-test.c
+++ b/dbus/dbus-test.c
@@ -65,6 +65,9 @@ void
dbus_internal_do_not_use_run_tests (const char *test_data_dir)
{
#ifdef DBUS_BUILD_TESTS
+ if (!_dbus_threads_init_debug ())
+ die ("debug threads init");
+
if (test_data_dir == NULL)
test_data_dir = _dbus_getenv ("DBUS_TEST_DATA");