diff options
Diffstat (limited to 'gio/tests/gdbus-proxy-well-known-name.c')
-rw-r--r-- | gio/tests/gdbus-proxy-well-known-name.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gio/tests/gdbus-proxy-well-known-name.c b/gio/tests/gdbus-proxy-well-known-name.c index bc22537e8..db2e5cc1d 100644 --- a/gio/tests/gdbus-proxy-well-known-name.c +++ b/gio/tests/gdbus-proxy-well-known-name.c @@ -26,8 +26,6 @@ #include "gdbus-tests.h" -static const gchar *binpath; - /* all tests rely on a shared mainloop */ static GMainLoop *loop = NULL; @@ -101,7 +99,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 */ - path = g_build_filename (binpath, "gdbus-testserver", NULL); + path = g_test_build_filename (G_TEST_BUILT, "gdbus-testserver", NULL); g_assert (g_spawn_command_line_async (path, NULL)); g_free (path); @@ -229,7 +227,7 @@ test_proxy_well_known_name (void) * the 'y' property should be back at 1... */ /* this is safe; testserver will exit once the bus goes away */ - path = g_build_filename (binpath, "gdbus-testserver", NULL); + path = g_test_build_filename (G_TEST_BUILT, "gdbus-testserver", NULL); g_assert (g_spawn_command_line_async (path, NULL)); g_free (path); @@ -267,11 +265,6 @@ main (int argc, { gint ret; - if (g_getenv ("G_TEST_DATA")) - binpath = g_getenv ("G_TEST_DATA"); - else - binpath = BUILDDIR; - g_test_init (&argc, &argv, NULL); /* all the tests rely on a shared main loop */ |