From d25575211d27852df6fd2fbe5eaa9ed985fafbf0 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Wed, 11 Jul 2012 12:23:55 -0400 Subject: 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). --- tests/dbus.c | 4 ++-- 1 file 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); -- cgit v1.2.1