Simplify fileattributematcher tests a bit
[platform/upstream/glib.git] / gio / tests / gdbus-non-socket.c
index 77c814d..b28d9bd 100644 (file)
@@ -106,7 +106,7 @@ pokee_method_call (GDBusConnection       *connection,
   g_assert_cmpstr (method_name, ==, "Poke");
 
   g_variant_get (parameters, "(&s)", &str);
-  ret = g_strdup_printf ("You poked me with: `%s'", str);
+  ret = g_strdup_printf ("You poked me with: '%s'", str);
   g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", ret));
   g_free (ret);
 }
@@ -219,6 +219,8 @@ test_non_socket (void)
       break;
     }
 
+  /* This is #ifdef G_OS_UNIX anyway, so just use g_test_trap_fork() */
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   if (!g_test_trap_fork (0, 0))
     {
       /* parent */
@@ -229,6 +231,7 @@ test_non_socket (void)
       g_assert_cmpint (kill (first_child, SIGTERM), ==, 0);
       return;
     }
+  G_GNUC_END_IGNORE_DEPRECATIONS;
 
   /* second child */
 
@@ -266,7 +269,7 @@ test_non_socket (void)
                                      &error);
   g_assert_no_error (error);
   g_variant_get (ret, "(&s)", &str);
-  g_assert_cmpstr (str, ==, "You poked me with: `I am the POKER!'");
+  g_assert_cmpstr (str, ==, "You poked me with: 'I am the POKER!'");
   g_variant_unref (ret);
 
   g_object_unref (connection);