summaryrefslogtreecommitdiff
path: root/test/name-test
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2010-04-11 01:34:37 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2010-04-13 21:15:41 +0200
commitec18f1fc89f28ef3be945c567916d04856f631b8 (patch)
treeba825901737d9605988811326de952835c2f3730 /test/name-test
parent9ba1517315667812b3aa09457a770d44c02c6c46 (diff)
downloaddbus-ec18f1fc89f28ef3be945c567916d04856f631b8.tar.gz
Port test-privserver to windows by using the TEST_LISTEN bus address.
Diffstat (limited to 'test/name-test')
-rw-r--r--test/name-test/test-privserver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/name-test/test-privserver.c b/test/name-test/test-privserver.c
index 100e0cf2..39a98b7f 100644
--- a/test/name-test/test-privserver.c
+++ b/test/name-test/test-privserver.c
@@ -89,7 +89,11 @@ main (int argc, char *argv[])
if (!dbus_connection_add_filter (session, filter_session_message, testdata, NULL))
die ("couldn't add filter");
+#ifdef DBUS_CMAKE
+ server = dbus_server_listen (TEST_LISTEN, &error);
+#else
server = dbus_server_listen ("unix:tmpdir=/tmp", &error);
+#endif
if (!server)
die (error.message);
testdata->private_addr = dbus_server_get_address (server);