aboutsummaryrefslogtreecommitdiff
path: root/tests/test-json-client.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-29 07:44:31 -0700
committerCharles Kerr <charles.kerr@canonical.com>2012-03-29 07:44:31 -0700
commit921aacaeec41ef3b62d2c1650f9f872eea921013 (patch)
treed12db36a7cedb1d3ce93da2fab0a227d46507a74 /tests/test-json-client.c
parent4c0ab8af125ecdac6690bc56ab60f0059bafad9f (diff)
parent11ee75120bad73033ccd1ec1ceb919395023084e (diff)
downloadlibdbusmenu-921aacaeec41ef3b62d2c1650f9f872eea921013.tar.gz
libdbusmenu-921aacaeec41ef3b62d2c1650f9f872eea921013.tar.bz2
libdbusmenu-921aacaeec41ef3b62d2c1650f9f872eea921013.zip
merge lp:~ted/dbusmenu/instruction-count-testing to support benchmarking based on callgrind measurements h/t Chase
Diffstat (limited to 'tests/test-json-client.c')
-rw-r--r--tests/test-json-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-json-client.c b/tests/test-json-client.c
index 55d2ede..8900902 100644
--- a/tests/test-json-client.c
+++ b/tests/test-json-client.c
@@ -44,6 +44,8 @@ timeout_func (gpointer user_data)
g_file_replace_contents(ofile, output, g_utf8_strlen(output, -1), NULL, FALSE, 0, NULL, NULL, NULL);
}
+ g_spawn_command_line_sync("gdbus call --session --dest org.dbusmenu.test --object-path /org/test --method com.canonical.dbusmenu.Event 0 clicked \"<0>\" 0", NULL, NULL, NULL, NULL);
+
g_main_loop_quit(mainloop);
return TRUE;
}
@@ -53,7 +55,7 @@ main (int argc, char ** argv)
{
g_type_init();
- g_timeout_add_seconds(2, timeout_func, argv);
+ g_timeout_add_seconds(1, timeout_func, argv);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);