summaryrefslogtreecommitdiff
path: root/gio/tests/gdbus-connection-loss.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-05-28 12:48:37 -0400
committerRyan Lortie <desrt@desrt.ca>2013-05-29 09:03:31 -0400
commit58c6ca32aac6e0735d7325ce0b876025c722bae3 (patch)
tree0ee91b5bb779d352c91621e87d78093ab678f1f3 /gio/tests/gdbus-connection-loss.c
parent0c4806733cb30f56325b0f1c4e95a400e4998c14 (diff)
downloadglib-58c6ca32aac6e0735d7325ce0b876025c722bae3.tar.gz
tests: use new g_test_build_filename() API
Port most of the tests to the new g_test_build_filename() API. https://bugzilla.gnome.org/show_bug.cgi?id=549783
Diffstat (limited to 'gio/tests/gdbus-connection-loss.c')
-rw-r--r--gio/tests/gdbus-connection-loss.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gio/tests/gdbus-connection-loss.c b/gio/tests/gdbus-connection-loss.c
index 87dc1b711..ed4142dff 100644
--- a/gio/tests/gdbus-connection-loss.c
+++ b/gio/tests/gdbus-connection-loss.c
@@ -26,8 +26,6 @@
#include "gdbus-tests.h"
-static const gchar *binpath;
-
/* all tests rely on a global connection */
static GDBusConnection *c = NULL;
@@ -116,11 +114,6 @@ main (int argc,
gint ret;
gchar *path;
- 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 */
@@ -129,7 +122,7 @@ main (int argc,
session_bus_up ();
/* 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);