summaryrefslogtreecommitdiff
path: root/tests/dbus.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-11 12:40:22 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-11 12:42:05 -0400
commitebf22c7253795313870e8d5f112d7d79d2db8969 (patch)
treeb025dbcb4122cfd9c129b7566c6ca56bb24cf2b3 /tests/dbus.c
parent2108640d5a5188873cee73d0c776ab4b4def855d (diff)
downloaddconf-ebf22c7253795313870e8d5f112d7d79d2db8969.tar.gz
tests/: test the libdbus-1 DBus backend
Add a testcase for the libdbus-1 DBus backend. It uses the existing testcase code and undergoes the same tests as the two other backends. There is one exception: we do not test for failure to connect to D-Bus because the D-Bus connections are passed up-front for the libdbus-1 case, as arguments to dconf_dbus_client_new().
Diffstat (limited to 'tests/dbus.c')
-rw-r--r--tests/dbus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/dbus.c b/tests/dbus.c
index 53d5456..d411c06 100644
--- a/tests/dbus.c
+++ b/tests/dbus.c
@@ -409,7 +409,9 @@ main (int argc, char **argv)
dconf_engine_dbus_init_for_testing ();
/* test_creation_error absolutely must come first */
- g_test_add_func (DBUS_BACKEND "/creation/error", test_creation_error);
+ if (!g_str_equal (DBUS_BACKEND, "/libdbus-1"))
+ g_test_add_func (DBUS_BACKEND "/creation/error", test_creation_error);
+
g_test_add_func (DBUS_BACKEND "/sync-call/success", test_sync_call_success);
g_test_add_func (DBUS_BACKEND "/sync-call/error", test_sync_call_error);
g_test_add_func (DBUS_BACKEND "/async-call/success", test_async_call_success);