aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-09-09 13:54:38 -0500
committerTed Gould <ted@gould.cx>2013-09-09 13:54:38 -0500
commite7ed232f654cbb438febd4ce978326ffdef98b0d (patch)
tree208eba1313090f8748ca481fbc0fc485cfb02735
parent3bfb7b20c40b956c0379beaab0055cb24bde362f (diff)
downloadlibdbusmenu-e7ed232f654cbb438febd4ce978326ffdef98b0d.tar.gz
libdbusmenu-e7ed232f654cbb438febd4ce978326ffdef98b0d.tar.bz2
libdbusmenu-e7ed232f654cbb438febd4ce978326ffdef98b0d.zip
Extend the death timeouts to 60 seconds
-rw-r--r--tests/test-glib-layout-client.c2
-rw-r--r--tests/test-glib-proxy-client.c6
-rw-r--r--tests/test-glib-submenu-client.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/tests/test-glib-layout-client.c b/tests/test-glib-layout-client.c
index 83b47ee..265b34f 100644
--- a/tests/test-glib-layout-client.c
+++ b/tests/test-glib-layout-client.c
@@ -117,7 +117,7 @@ main (int argc, char ** argv)
DbusmenuClient * client = dbusmenu_client_new("org.dbusmenu.test", "/org/test");
g_signal_connect(G_OBJECT(client), DBUSMENU_CLIENT_SIGNAL_LAYOUT_UPDATED, G_CALLBACK(layout_updated), NULL);
- g_timeout_add_seconds(10, timer_func, client);
+ g_timeout_add_seconds(60, timer_func, client);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
diff --git a/tests/test-glib-proxy-client.c b/tests/test-glib-proxy-client.c
index 72468c8..4d11ece 100644
--- a/tests/test-glib-proxy-client.c
+++ b/tests/test-glib-proxy-client.c
@@ -26,6 +26,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "test-glib-proxy.h"
+#define DEATH_TIME 60
+
static guint layouton = -2;
static GMainLoop * mainloop = NULL;
static gboolean passed = TRUE;
@@ -143,7 +145,7 @@ layout_verify_timer (gpointer data)
} else {
/* Extend our death */
g_source_remove(death_timer);
- death_timer = g_timeout_add_seconds(10, timer_func, data);
+ death_timer = g_timeout_add_seconds(DEATH_TIME, timer_func, data);
}
if (layouts[layouton+1].id == -1) {
@@ -162,7 +164,7 @@ main (int argc, char ** argv)
DbusmenuClient * client = dbusmenu_client_new("test.proxy.first_proxy", "/org/test");
g_signal_connect(G_OBJECT(client), DBUSMENU_CLIENT_SIGNAL_LAYOUT_UPDATED, G_CALLBACK(layout_updated), NULL);
- death_timer = g_timeout_add_seconds(10, timer_func, client);
+ death_timer = g_timeout_add_seconds(DEATH_TIME, timer_func, client);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
diff --git a/tests/test-glib-submenu-client.c b/tests/test-glib-submenu-client.c
index 29d7720..097e91d 100644
--- a/tests/test-glib-submenu-client.c
+++ b/tests/test-glib-submenu-client.c
@@ -100,7 +100,7 @@ main (int argc, char ** argv)
DbusmenuClient * client = dbusmenu_client_new("org.dbusmenu.test", "/org/test");
g_signal_connect(G_OBJECT(client), DBUSMENU_CLIENT_SIGNAL_LAYOUT_UPDATED, G_CALLBACK(layout_updated), NULL);
- g_timeout_add_seconds(10, timer_func, client);
+ g_timeout_add_seconds(60, timer_func, client);
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);