aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKrisztian Litkey <krisztian.litkey@nokia.com>2010-07-23 10:56:25 +0300
committerKrisztian Litkey <krisztian.litkey@nokia.com>2010-07-23 10:56:25 +0300
commit9851e5e5db0b2b10cf4f791bf9c7c2fbb672cfac (patch)
treeb5bcf4d78b6057b29bdd5d37d2c02b0eb4e518e2 /tests
parent46c6298be3725bd9313bc22172914f108ded0d71 (diff)
Don't approximate a D-BUS connection with 0xC0FFEE.
Diffstat (limited to 'tests')
-rw-r--r--tests/resource-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/resource-test.c b/tests/resource-test.c
index 438f95a..93ab6aa 100644
--- a/tests/resource-test.c
+++ b/tests/resource-test.c
@@ -384,7 +384,11 @@ int resproto_send_message(resset_t *rset,
DBusConnection *resource_get_dbus_bus(DBusBusType type, DBusError *err)
{
+#ifdef APPROXIMATE_DBUS_WITH_C0FFEE
return (DBusConnection *) 0xC0FFEE;
+#else
+ return dbus_bus_get(type, err);
+#endif
}
resproto_handler_t handlers[3];