[glib] Allow slightly too big poll duration in /socket/timed_wait test



commit 475edeb2edad68b4bef818deb7ee7db92598397f
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Fri Oct 19 14:34:18 2012 +0200

    Allow slightly too big poll duration in /socket/timed_wait test
    
    Sometimes the poll duration in the /socket/timed_wait test is slightly
    bigger than the requested 100000, causing failures like:
    
    GLib-GIO:ERROR:socket.c:620:test_timed_wait:
        assertion failed (poll_duration < 110000): (110057 < 110000)
    
    Adjust the test to allow some jitter in the "too high" direction.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686458

 gio/tests/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/socket.c b/gio/tests/socket.c
index f142296..e96e792 100644
--- a/gio/tests/socket.c
+++ b/gio/tests/socket.c
@@ -617,7 +617,7 @@ test_timed_wait (void)
   poll_duration = g_get_monotonic_time () - start_time;
 
   g_assert_cmpint (poll_duration, >=, 98000);
-  g_assert_cmpint (poll_duration, <, 110000);
+  g_assert_cmpint (poll_duration, <, 112000);
 
   g_socket_close (client, &error);
   g_assert_no_error (error);



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