Revert "gdbus-connection-loss: Fix leak in test"
[platform/upstream/glib.git] / gio / tests / gdbus-connection-loss.c
index addc2a3..ed4142d 100644 (file)
@@ -112,6 +112,7 @@ main (int   argc,
 {
   GError *error;
   gint ret;
+  gchar *path;
 
   g_test_init (&argc, &argv, NULL);
 
@@ -121,7 +122,9 @@ 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));
+  path = g_test_build_filename (G_TEST_BUILT, "gdbus-testserver", NULL);
+  g_assert (g_spawn_command_line_async (path, NULL));
+  g_free (path);
 
   /* wait for the service to come up */
   usleep (500 * 1000);