Increase the timeout of timing-sensitive thread tests.
authorLudovic Courtès <ludo@gnu.org>
Fri, 22 Apr 2011 14:18:14 +0000 (16:18 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 22 Apr 2011 14:59:05 +0000 (16:59 +0200)
* test-suite/tests/threads.test ("timed locking succeeds if mutex
  unlocked within timeout", "timed unlocking returns #t if condition
  signaled", "timed joining succeeds if thread exits within timeout"):
  Increase the timeout.  Reported by Dale P. Smith <dsmich@roadrunner.com>.

test-suite/tests/threads.test

index 2ffffb5..1166247 100644 (file)
@@ -1,6 +1,6 @@
 ;;;; threads.test --- Tests for Guile threading.    -*- scheme -*-
 ;;;;
-;;;; Copyright 2003, 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
+;;;; Copyright 2003, 2006, 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
 ;;;;
 ;;;; This library is free software; you can redistribute it and/or
 ;;;; modify it under the terms of the GNU Lesser General Public
                                          (signal-condition-variable c)
                                          (unlock-mutex cm)
                                          (lock-mutex m
-                                                     (+ (current-time) 2))))))
+                                                     (+ (current-time) 5))))))
              (lock-mutex m)
              (wait-condition-variable c cm)
              (unlock-mutex cm)
                                          (unlock-mutex m2
                                                        c2
                                                        (+ (current-time)
-                                                          2))))))
+                                                          5))))))
              (wait-condition-variable c1 m1)
              (unlock-mutex m1)
              (lock-mutex m2)
 
        (pass-if "timed joining succeeds if thread exits within timeout"
           (let ((t (begin-thread (begin (sleep 1) #t))))
-           (join-thread t (+ (current-time) 2))))
+           (join-thread t (+ (current-time) 5))))
 
        (pass-if "asyncs are still working 1"
          (asyncs-still-working?))