diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-11 12:23:55 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-11 12:25:18 -0400 |
commit | d25575211d27852df6fd2fbe5eaa9ed985fafbf0 (patch) | |
tree | 37b3ab084515ae9fb249ef0381c7164385b9651e /tests | |
parent | f531f87c9b8c47417f9330b9a4bb7497c5560e9f (diff) | |
download | dconf-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.c | 4 |
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); |