From eae3a9cf885eddf16ecd604cc06fc33b1af4cd45 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 15 Jan 2003 16:34:52 +0000 Subject: 2003-01-15 Havoc Pennington * dbus/dbus-test.c (dbus_internal_symbol_do_not_use_run_tests): fix build when --disable-tests * Makefile.am (EXTRA_DIST): put HACKING in here * HACKING: document procedure for making a tarball release. --- dbus/dbus-test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dbus/dbus-test.c') diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c index a219069f..64910ef3 100644 --- a/dbus/dbus-test.c +++ b/dbus/dbus-test.c @@ -42,6 +42,7 @@ die (const char *failure) void dbus_internal_symbol_do_not_use_run_tests (void) { +#ifdef DBUS_BUILD_TESTS printf ("%s: running string tests\n", "dbus-test"); if (!_dbus_string_test ()) die ("strings"); @@ -67,6 +68,9 @@ dbus_internal_symbol_do_not_use_run_tests (void) die ("hash tables"); printf ("%s: completed successfully\n", "dbus-test"); +#else + printf ("Not compiled with unit tests, not running any\n"); +#endif } -- cgit