summaryrefslogtreecommitdiff
path: root/gio/tests/gdbus-introspection.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/tests/gdbus-introspection.c')
-rw-r--r--gio/tests/gdbus-introspection.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gio/tests/gdbus-introspection.c b/gio/tests/gdbus-introspection.c
index 89e5f502b..cbba696de 100644
--- a/gio/tests/gdbus-introspection.c
+++ b/gio/tests/gdbus-introspection.c
@@ -26,8 +26,6 @@
#include "gdbus-tests.h"
-static const gchar *binpath;
-
/* all tests rely on a shared mainloop */
static GMainLoop *loop = NULL;
@@ -128,7 +126,7 @@ test_introspection_parser (void)
g_assert_no_error (error);
/* 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);
@@ -308,11 +306,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 */