summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-02-01 20:32:50 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-02-01 20:32:50 +0000
commit4bdd55b8d18ea82aa567c9fac71c59844662027d (patch)
tree5612c83554d7890b82c2401cedcec0c0622d8a0a /testsuite
parentedc6803ed130ca67eeed36a22155030c3aff7767 (diff)
testsuite/threads/threadi.c: Fix buglet in test.
Original commit message from CVS: * testsuite/threads/threadi.c: (cb_data): Fix buglet in test.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/threads/threadi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/threads/threadi.c b/testsuite/threads/threadi.c
index 6fe8840b3..284e66363 100644
--- a/testsuite/threads/threadi.c
+++ b/testsuite/threads/threadi.c
@@ -51,9 +51,14 @@ cb_eos (gpointer data)
static void
cb_data (gpointer data)
{
+ static gboolean first = TRUE;
+
g_print ("Received data\n");
- g_idle_add ((GSourceFunc) cb_quit, NULL);
+ if (first) {
+ first = FALSE;
+ g_idle_add ((GSourceFunc) cb_quit, NULL);
+ }
}
#endif