summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-11 12:23:55 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-11 12:25:18 -0400
commitd25575211d27852df6fd2fbe5eaa9ed985fafbf0 (patch)
tree37b3ab084515ae9fb249ef0381c7164385b9651e /tests
parentf531f87c9b8c47417f9330b9a4bb7497c5560e9f (diff)
downloaddconf-d25575211d27852df6fd2fbe5eaa9ed985fafbf0.tar.gz
dbus test: signal with strings instead of ints
We should be testing strings and arrays of strings in our signal handling code (since that's what real dconf signals have inside of them).
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dbus.c b/tests/dbus.c
index f930e2d..53d5456 100644
--- a/tests/dbus.c
+++ b/tests/dbus.c
@@ -135,7 +135,7 @@ dconf_engine_handle_dbus_signal (GBusType bus_type,
{
GVariant *expected;
- expected = g_variant_parse (NULL, "(1, 2, 3)", NULL, NULL, NULL);
+ expected = g_variant_parse (NULL, "('1', ['2', '3'])", NULL, NULL, NULL);
g_assert (g_variant_equal (parameters, expected));
g_variant_unref (expected);
@@ -390,7 +390,7 @@ test_signal_receipt (void)
status = system ("gdbus emit --session "
"--object-path /ca/desrt/dconf/Writer/testcase "
"--signal ca.desrt.dconf.Writer.TestSignal "
- "1 2 3");
+ "\"'1'\" \"['2', '3']\"");
g_assert_cmpint (status, ==, 0);
id = g_timeout_add (30000, did_not_receive_signal, NULL);