From bc17eec1b436a9768a41414ac05d337d0872d147 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 30 Sep 2009 14:58:04 -0500 Subject: Not sure what this test was supposed to do, but it creates some items. Could be a good property test. Anyway, now it exits. --- tests/test-glib-simple-items.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/test-glib-simple-items.c') 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); -- cgit v1.2.3