mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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
This commit is contained in:
@@ -26,8 +26,6 @@
|
||||
|
||||
#include "gdbus-tests.h"
|
||||
|
||||
static const gchar *binpath;
|
||||
|
||||
/* all tests rely on a global connection */
|
||||
static GDBusConnection *c = NULL;
|
||||
|
||||
@@ -585,17 +583,12 @@ 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);
|
||||
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user