diff options
Diffstat (limited to 'dbus/dbus-test.c')
-rw-r--r-- | dbus/dbus-test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c index 658d2d8a..603a5092 100644 --- a/dbus/dbus-test.c +++ b/dbus/dbus-test.c @@ -50,8 +50,6 @@ check_memleaks (void) } } -#endif /* DBUS_BUILD_TESTS */ - typedef dbus_bool_t (*TestFunc)(void); typedef dbus_bool_t (*TestDataFunc)(const char *data); @@ -86,6 +84,8 @@ run_data_test (const char *test_name, check_memleaks (); } +#endif /* DBUS_BUILD_TESTS */ + /** * An exported symbol to be run in order to execute * unit tests. Should not be used by @@ -179,3 +179,4 @@ dbus_internal_do_not_use_run_tests (const char *test_data_dir, const char *speci printf ("Not compiled with unit tests, not running any\n"); #endif } + |