summaryrefslogtreecommitdiff
path: root/bus/dispatch.c
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2010-04-09 23:34:28 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2010-04-11 11:49:46 +0200
commit0ed7d779b784f30ff9781c0ad47a03af199531a6 (patch)
tree462c95dc95a4e6507d34bf18cfd3a962d68b8ed1 /bus/dispatch.c
parent2279457cbcf5064703647ba3f790445cb1803a79 (diff)
downloaddbus-0ed7d779b784f30ff9781c0ad47a03af199531a6.tar.gz
Cmake support for cross plattform usable test files.
Recent test configuration files contains 'unix:...' bus adresses which do not work on windows. For cross plattform usable test files the whole listen tag entry has to be set by the build system, which is available with a new build system variable named TEST_LISTEN. To have the client client side definition in sync, TEST_CONNECTION has been moved from c file into cmake build system.
Diffstat (limited to 'bus/dispatch.c')
-rw-r--r--bus/dispatch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bus/dispatch.c b/bus/dispatch.c
index d4c69dc4..d42a9e3f 100644
--- a/bus/dispatch.c
+++ b/bus/dispatch.c
@@ -41,11 +41,17 @@
#include <unistd.h>
#endif
+#ifndef TEST_CONNECTION
+/*
+ TODO autotools:
+ move to build system as already done for cmake
+*/
#ifdef DBUS_UNIX
#define TEST_CONNECTION "debug-pipe:name=test-server"
#else
#define TEST_CONNECTION "tcp:host=localhost,port=1234"
#endif
+#endif
static dbus_bool_t
send_one_message (DBusConnection *connection,