From e32aa4de0ea5067d333e5b5d00f4d184a340b3a5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 14 Nov 2017 15:17:32 +0000 Subject: [PATCH 03/13] Do not export dbus_internal_do_not_use_run_tests if unused Signed-off-by: Simon McVittie --- dbus/dbus-test.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c index 6c0d71f6..312fb78b 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 */ -- 2.15.0