aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-04-09 18:15:47 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-04-09 18:15:47 +0200
commit7d7d2013c740aab5308afe00e27a784b0423f541 (patch)
tree60610f4331ad01a8c839a8244fe626da411cab8f
parentb2aa5f572a12858b1e1ce9987e3d26ae13449834 (diff)
downloadlibdbusmenu-7d7d2013c740aab5308afe00e27a784b0423f541.tar.gz
libdbusmenu-7d7d2013c740aab5308afe00e27a784b0423f541.tar.bz2
libdbusmenu-7d7d2013c740aab5308afe00e27a784b0423f541.zip
test-json-server: add a timeout before quitting
-rw-r--r--tests/test-json-server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-json-server.c b/tests/test-json-server.c
index 9a2dd8e..2603070 100644
--- a/tests/test-json-server.c
+++ b/tests/test-json-server.c
@@ -36,8 +36,7 @@ root_activate (void)
g_debug("Dumping callgrind data");
CALLGRIND_DUMP_STATS_AT("exported");
CALLGRIND_STOP_INSTRUMENTATION;
- g_main_loop_quit(mainloop);
- return;
+ g_timeout_add(500, (GSourceFunc)g_main_loop_quit, mainloop);
}
static void