Add workaround to a flaky semaphore timeout test.
authorJuho Snellman <jsnell@iki.fi>
Thu, 12 Apr 2012 15:10:25 +0000 (17:10 +0200)
committerJuho Snellman <jsnell@iki.fi>
Thu, 12 Apr 2012 21:07:05 +0000 (23:07 +0200)
tests/threads.pure.lisp

index 5d72bd9..717fb36 100644 (file)
                    collect (make-thread
                             (lambda ()
                               (sleep (random 0.02))
-                              (wait-on-semaphore sem :timeout 0.01)))))))
+                              (wait-on-semaphore sem :timeout 0.5)))))))
     (loop repeat 5
           do (signal-semaphore sem 2))
     (let ((ok (count-if #'join-thread threads)))