[dconf/wip/reorg] dbus test: signal with strings instead of ints



commit d25575211d27852df6fd2fbe5eaa9ed985fafbf0
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Jul 11 12:23:55 2012 -0400

    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 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]