summaryrefslogtreecommitdiffstats
path: root/test/test-utils.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2008-05-30 16:53:35 -0400
committerColin Walters <walters@verbum.org>2008-05-30 16:53:35 -0400
commita73a79a155e97a3bd0d3ce5001ca6b9db803eeeb (patch)
treef1c3baeb481bcc0f485a7f9371f1fdc43f0efe08 /test/test-utils.h
parent9d8989cfec02e6ca41f8ffa0ccda16c93ddcb23c (diff)
Add noinst convenience test library, add a test-shutdown
* test/Makefile.am: New convenience library libdbus_testutils_la. Reorder build so that test/ gets built before test/name-test so name-test files can depend on it. * test/name-test/test-shutdown.c: New file, exercises dbus_shutdown () a bit. * test/name-test/run-test.sh Run test-shutdown. * test/test-utils.h: In some cases we already have DBUS_COMPILATION defined, avoid double definition warning.
Diffstat (limited to 'test/test-utils.h')
-rw-r--r--test/test-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-utils.h b/test/test-utils.h
index ec8246a1..90d87767 100644
--- a/test/test-utils.h
+++ b/test/test-utils.h
@@ -1,7 +1,9 @@
#ifndef TEST_UTILS_H
#define TEST_UTILS_H
#include <config.h>
+#ifndef DBUS_COMPILATION
#define DBUS_COMPILATION /* Cheat and use private stuff */
+#endif
#include <dbus/dbus.h>
#include <stdio.h>
#include <stdlib.h>