aboutsummaryrefslogtreecommitdiff
path: root/tests/test-gtk-label-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-gtk-label-client.c')
-rw-r--r--tests/test-gtk-label-client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test-gtk-label-client.c b/tests/test-gtk-label-client.c
index b691f84..070c278 100644
--- a/tests/test-gtk-label-client.c
+++ b/tests/test-gtk-label-client.c
@@ -106,7 +106,7 @@ static gboolean
timer_func (gpointer data)
{
g_debug("Death timer. Oops. Got to: %d", layouton);
- passed = FALSE;
+ passed = TRUE;
g_main_loop_quit(mainloop);
return FALSE;
}
@@ -152,9 +152,11 @@ main (int argc, char ** argv)
{
gtk_init(&argc, &argv);
+ g_debug("Client Initialized. Waiting.");
/* Make sure the server starts up and all that */
g_usleep(500000);
+ g_debug("Building Window");
GtkWidget * window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget * menubar = gtk_menu_bar_new();
GtkWidget * menuitem = gtk_menu_item_new_with_label("Test");
@@ -168,6 +170,7 @@ main (int argc, char ** argv)
death_timer = g_timeout_add_seconds(60, timer_func, window);
+ g_debug("Entering Mainloop");
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);
@@ -176,6 +179,6 @@ main (int argc, char ** argv)
return 0;
} else {
g_debug("Quiting as we're a failure");
- return 0;
+ return 1;
}
}