diff options
author | Michael Terry <michael.terry@canonical.com> | 2013-01-10 17:18:55 -0500 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2013-01-10 17:18:55 -0500 |
commit | 616555a9509f3b1f313ea3056e30c48737eeb908 (patch) | |
tree | 891421654f31b5da8198a3cb2fa2da28e443b24c /tests/test-libappindicator-fallback-watcher.c | |
parent | 59a0f715f324fb45001364a5876a6fd0b51a107a (diff) | |
download | libayatana-appindicator-616555a9509f3b1f313ea3056e30c48737eeb908.tar.gz libayatana-appindicator-616555a9509f3b1f313ea3056e30c48737eeb908.tar.bz2 libayatana-appindicator-616555a9509f3b1f313ea3056e30c48737eeb908.zip |
some packaging fixes to make tests more resistant to timing issues and warnings from sub-libraries
Diffstat (limited to 'tests/test-libappindicator-fallback-watcher.c')
-rw-r--r-- | tests/test-libappindicator-fallback-watcher.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-libappindicator-fallback-watcher.c b/tests/test-libappindicator-fallback-watcher.c index 5494082..f337150 100644 --- a/tests/test-libappindicator-fallback-watcher.c +++ b/tests/test-libappindicator-fallback-watcher.c @@ -77,6 +77,7 @@ main (int argv, char ** argc) while (!has_owner && owner_count < 10000) { org_freedesktop_DBus_name_has_owner(bus_proxy, "org.test", &has_owner, NULL); owner_count++; + g_usleep(500000); } if (owner_count == 10000) { @@ -104,7 +105,7 @@ main (int argv, char ** argc) /* This is the final kill function. It really shouldn't happen unless we get an error. */ - g_timeout_add(2000, kill_func, NULL); + g_timeout_add_seconds(20, kill_func, NULL); g_debug("Entering Mainloop"); |