summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-test.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-01-15 16:34:52 +0000
committerHavoc Pennington <hp@redhat.com>2003-01-15 16:34:52 +0000
commiteae3a9cf885eddf16ecd604cc06fc33b1af4cd45 (patch)
tree8e5a887bedb4e1c8e0805aefb743a79bcef3f1c0 /dbus/dbus-test.c
parent1b9a4589f6836641ded324b7b5d003c5cbfb0b78 (diff)
2003-01-15 Havoc Pennington <hp@redhat.com>
* 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.
Diffstat (limited to 'dbus/dbus-test.c')
-rw-r--r--dbus/dbus-test.c4
1 files changed, 4 insertions, 0 deletions
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
}