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);
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",
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 */
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");
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");
* 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 */
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");
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);
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);