[glib] Use the C gdbus-testserver in tests



commit 663ed23bc5614fb4f40df04a9e949f63cf554e06
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 3 13:12:58 2013 -0500

    Use the C gdbus-testserver in tests

 gio/tests/gdbus-connection-loss.c       |    2 +-
 gio/tests/gdbus-connection-slow.c       |    2 +-
 gio/tests/gdbus-connection.c            |    2 +-
 gio/tests/gdbus-introspection.c         |    2 +-
 gio/tests/gdbus-proxy-well-known-name.c |    2 +-
 gio/tests/gdbus-proxy.c                 |    2 +-
 gio/tests/gdbus-threading.c             |    2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gio/tests/gdbus-connection-loss.c b/gio/tests/gdbus-connection-loss.c
index addc2a3..30a4948 100644
--- a/gio/tests/gdbus-connection-loss.c
+++ b/gio/tests/gdbus-connection-loss.c
@@ -121,7 +121,7 @@ main (int   argc,
   session_bus_up ();
 
   /* this is safe; testserver will exit once the bus goes away */
-  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver.py", NULL));
+  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL));
 
   /* wait for the service to come up */
   usleep (500 * 1000);
diff --git a/gio/tests/gdbus-connection-slow.c b/gio/tests/gdbus-connection-slow.c
index b372df3..d51a9d0 100644
--- a/gio/tests/gdbus-connection-slow.c
+++ b/gio/tests/gdbus-connection-slow.c
@@ -173,7 +173,7 @@ test_connection_large_message (void)
   session_bus_up ();
 
   /* this is safe; testserver will exit once the bus goes away */
-  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver.py", NULL));
+  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL));
 
   watcher_id = g_bus_watch_name (G_BUS_TYPE_SESSION,
                                  "com.example.TestService",
diff --git a/gio/tests/gdbus-connection.c b/gio/tests/gdbus-connection.c
index baa062b..3654383 100644
--- a/gio/tests/gdbus-connection.c
+++ b/gio/tests/gdbus-connection.c
@@ -924,7 +924,7 @@ test_connection_filter (void)
   g_assert_cmpint (data.num_outgoing, ==, 4);
 
   /* this is safe; testserver will exit once the bus goes away */
-  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver.py", NULL));
+  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL));
   /* wait for service to be available */
   signal_handler_id = g_dbus_connection_signal_subscribe (c,
                                                           "org.freedesktop.DBus", /* sender */
diff --git a/gio/tests/gdbus-introspection.c b/gio/tests/gdbus-introspection.c
index 2f66e49..88e7127 100644
--- a/gio/tests/gdbus-introspection.c
+++ b/gio/tests/gdbus-introspection.c
@@ -125,7 +125,7 @@ test_introspection_parser (void)
   g_assert_no_error (error);
 
   /* this is safe; testserver will exit once the bus goes away */
-  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver.py", NULL));
+  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL));
 
   _g_assert_property_notify (proxy, "g-name-owner");
 
diff --git a/gio/tests/gdbus-proxy-well-known-name.c b/gio/tests/gdbus-proxy-well-known-name.c
index 1e8ea5e..4e7aefe 100644
--- a/gio/tests/gdbus-proxy-well-known-name.c
+++ b/gio/tests/gdbus-proxy-well-known-name.c
@@ -98,7 +98,7 @@ test_proxy_well_known_name (void)
   g_assert (g_dbus_proxy_get_cached_property_names (ap) == NULL);
 
   /* this is safe; testserver will exit once the bus goes away */
-  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver.py", NULL));
+  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL));
 
   /* check that we get the notify::g-name-owner signal */
   _g_assert_property_notify (p, "g-name-owner");
diff --git a/gio/tests/gdbus-proxy.c b/gio/tests/gdbus-proxy.c
index 2cf539b..899c5b3 100644
--- a/gio/tests/gdbus-proxy.c
+++ b/gio/tests/gdbus-proxy.c
@@ -784,7 +784,7 @@ test_proxy (void)
   g_assert_no_error (error);
 
   /* this is safe; testserver will exit once the bus goes away */
-  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver.py", NULL));
+  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL));
 
   _g_assert_property_notify (proxy, "g-name-owner");
 
diff --git a/gio/tests/gdbus-threading.c b/gio/tests/gdbus-threading.c
index 5373cbe..5dcf853 100644
--- a/gio/tests/gdbus-threading.c
+++ b/gio/tests/gdbus-threading.c
@@ -587,7 +587,7 @@ main (int   argc,
   session_bus_up ();
 
   /* this is safe; testserver will exit once the bus goes away */
-  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver.py", NULL));
+  g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL));
 
   /* wait for the service to come up */
   usleep (500 * 1000);



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