diff options
author | Ted Gould <ted@canonical.com> | 2009-09-30 14:58:04 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-30 14:58:04 -0500 |
commit | bc17eec1b436a9768a41414ac05d337d0872d147 (patch) | |
tree | 7e7430f16566285617144d1438122c25cbb3c7e4 /tests | |
parent | 57af9b640d4808ba6abac152eebcc675dba04b4f (diff) | |
download | libdbusmenu-bc17eec1b436a9768a41414ac05d337d0872d147.tar.gz libdbusmenu-bc17eec1b436a9768a41414ac05d337d0872d147.tar.bz2 libdbusmenu-bc17eec1b436a9768a41414ac05d337d0872d147.zip |
Not sure what this test was supposed to do, but it creates some items. Could be a good property test. Anyway, now it exits.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-glib-simple-items.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-glib-simple-items.c b/tests/test-glib-simple-items.c index 56536e9..5b9f538 100644 --- a/tests/test-glib-simple-items.c +++ b/tests/test-glib-simple-items.c @@ -25,6 +25,13 @@ dummy_users (DbusmenuMenuitem * root) { return; } +static gboolean +quititall (gpointer data) +{ + g_main_quit(mainloop); + return FALSE; +} + int main (int argc, char ** argv) { @@ -37,6 +44,8 @@ main (int argc, char ** argv) dummy_users(root_menuitem); + g_timeout_add_seconds(1, quititall, NULL); + mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); |