From d4f0ae2c692f95046e381a2825b839b4816aea86 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 14 Jan 2013 22:22:41 -0500 Subject: [PATCH] Fix distcheck With gdbus-testserver now being a compiled program, it no longer lives in SRCDIR. --- gio/tests/gdbus-connection-loss.c | 2 +- gio/tests/gdbus-connection-slow.c | 2 +- gio/tests/gdbus-connection.c | 2 +- gio/tests/gdbus-introspection.c | 2 +- gio/tests/gdbus-proxy-well-known-name.c | 4 ++-- gio/tests/gdbus-proxy.c | 4 ++-- gio/tests/gdbus-threading.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gio/tests/gdbus-connection-loss.c b/gio/tests/gdbus-connection-loss.c index 30a4948ca..2f99ff511 100644 --- a/gio/tests/gdbus-connection-loss.c +++ b/gio/tests/gdbus-connection-loss.c @@ -121,7 +121,7 @@ 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", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); /* wait for the service to come up */ usleep (500 * 1000); diff --git a/gio/tests/gdbus-connection-slow.c b/gio/tests/gdbus-connection-slow.c index d51a9d0b1..302cee9d2 100644 --- a/gio/tests/gdbus-connection-slow.c +++ b/gio/tests/gdbus-connection-slow.c @@ -173,7 +173,7 @@ test_connection_large_message (void) session_bus_up (); /* this is safe; testserver will exit once the bus goes away */ - g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); watcher_id = g_bus_watch_name (G_BUS_TYPE_SESSION, "com.example.TestService", diff --git a/gio/tests/gdbus-connection.c b/gio/tests/gdbus-connection.c index 36543835b..e48d61ff8 100644 --- a/gio/tests/gdbus-connection.c +++ b/gio/tests/gdbus-connection.c @@ -924,7 +924,7 @@ test_connection_filter (void) g_assert_cmpint (data.num_outgoing, ==, 4); /* this is safe; testserver will exit once the bus goes away */ - g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); /* wait for service to be available */ signal_handler_id = g_dbus_connection_signal_subscribe (c, "org.freedesktop.DBus", /* sender */ diff --git a/gio/tests/gdbus-introspection.c b/gio/tests/gdbus-introspection.c index 88e71273e..95d81ecb4 100644 --- a/gio/tests/gdbus-introspection.c +++ b/gio/tests/gdbus-introspection.c @@ -125,7 +125,7 @@ test_introspection_parser (void) g_assert_no_error (error); /* this is safe; testserver will exit once the bus goes away */ - g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); _g_assert_property_notify (proxy, "g-name-owner"); diff --git a/gio/tests/gdbus-proxy-well-known-name.c b/gio/tests/gdbus-proxy-well-known-name.c index 98fb7a941..d0b7591bd 100644 --- a/gio/tests/gdbus-proxy-well-known-name.c +++ b/gio/tests/gdbus-proxy-well-known-name.c @@ -98,7 +98,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 */ - g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); /* check that we get the notify::g-name-owner signal */ _g_assert_property_notify (p, "g-name-owner"); @@ -224,7 +224,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 */ - g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); /* check that we get the notify::g-name-owner signal */ _g_assert_property_notify (p, "g-name-owner"); /* Now we should have a name owner as well as properties */ diff --git a/gio/tests/gdbus-proxy.c b/gio/tests/gdbus-proxy.c index abe27e46d..e9d94c4d9 100644 --- a/gio/tests/gdbus-proxy.c +++ b/gio/tests/gdbus-proxy.c @@ -784,7 +784,7 @@ test_proxy (void) g_assert_no_error (error); /* this is safe; testserver will exit once the bus goes away */ - g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); _g_assert_property_notify (proxy, "g-name-owner"); @@ -846,7 +846,7 @@ test_async (void) NULL); /* this is safe; testserver will exit once the bus goes away */ - g_assert (g_spawn_command_line_async (SRCDIR "/gdbus-testserver", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); g_timeout_add (10000, fail_test, NULL); g_main_loop_run (loop); diff --git a/gio/tests/gdbus-threading.c b/gio/tests/gdbus-threading.c index 5dcf8536a..1f0fc525c 100644 --- a/gio/tests/gdbus-threading.c +++ b/gio/tests/gdbus-threading.c @@ -587,7 +587,7 @@ 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", NULL)); + g_assert (g_spawn_command_line_async ("./gdbus-testserver", NULL)); /* wait for the service to come up */ usleep (500 * 1000);