[glib] cond test: remove alarm() usage



commit c9cda16a4f607bf9b6498051d2b83aad99e391e4
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Mar 5 09:04:00 2014 -0500

    cond test: remove alarm() usage
    
    This means that the test can't build on Windows (and we do want it there).
    
    This will be properly resolved with bug 725266, but let's not block the
    build before then.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724859

 glib/tests/cond.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/glib/tests/cond.c b/glib/tests/cond.c
index 480e32e..f5215e5 100644
--- a/glib/tests/cond.c
+++ b/glib/tests/cond.c
@@ -25,8 +25,6 @@
 
 #include <glib.h>
 
-#include <unistd.h>
-
 static GCond cond;
 static GMutex mutex;
 static volatile gint next;
@@ -251,9 +249,6 @@ test_wait_until (void)
   g_mutex_init (&lock);
   g_cond_init (&cond);
 
-  /* Don't wait forever... */
-  alarm (60);
-
   until = g_get_monotonic_time () + G_TIME_SPAN_SECOND;
 
   /* Could still have spurious wakeups, so we must loop... */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]