summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-11-14 15:17:32 +0000
committerSimon McVittie <smcv@collabora.com>2017-11-15 12:08:21 +0000
commitfb9e8e4e0ce24b1fa65e157739826773b5d3f05d (patch)
tree4268954da41e953574ef6c43ead2ad317603e07f
parent3f3498c9c2026546d15227f6a154a2d38d9124e5 (diff)
Do not export dbus_internal_do_not_use_run_tests if unused
Reviewed-by: Philip Withnall <withnall@endlessm.com> Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103601
-rw-r--r--dbus/dbus-test.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c
index 6c0d71f63..312fb78bc 100644
--- a/dbus/dbus-test.c
+++ b/dbus/dbus-test.c
@@ -86,8 +86,6 @@ run_data_test (const char *test_name,
}
}
-#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
-
/**
* An exported symbol to be run in order to execute
* unit tests. Should not be used by
@@ -101,7 +99,6 @@ run_data_test (const char *test_name,
void
dbus_internal_do_not_use_run_tests (const char *test_data_dir, const char *specific_test)
{
-#ifdef DBUS_ENABLE_EMBEDDED_TESTS
if (!_dbus_threads_init_debug ())
die ("debug threads init");
@@ -168,8 +165,6 @@ dbus_internal_do_not_use_run_tests (const char *test_data_dir, const char *speci
run_data_test ("auth", specific_test, _dbus_auth_test, test_data_dir);
printf ("%s: completed successfully\n", "test-dbus");
-#else
- printf ("Not compiled with unit tests, not running any\n");
-#endif
}
+#endif /* DBUS_ENABLE_EMBEDDED_TESTS */