emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 26b5426: Fix the new condvar test


From: Eli Zaretskii
Subject: [Emacs-diffs] master 26b5426: Fix the new condvar test
Date: Fri, 13 Jan 2017 16:06:51 +0000 (UTC)

branch: master
commit 26b5426de8a51b88556e1dc4c2c328875f2dfb01
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix the new condvar test
    
    * test/src/thread-tests.el (threads-condvar-wait): Enlarge the
    time we sleep in the main thread to let the other thread
    process notifications.
---
 test/src/thread-tests.el |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/src/thread-tests.el b/test/src/thread-tests.el
index 61809e1..22ea907 100644
--- a/test/src/thread-tests.el
+++ b/test/src/thread-tests.el
@@ -272,8 +272,9 @@
     ;; Notify the waiting thread.
     (with-mutex cv-mutex
       (condition-notify threads-condvar t))
-    ;; Allow new-thread to process the notification.
-    (sleep-for 0.1)
+    ;; Allow new-thread to process the notification.  Sleeping for too
+    ;; short time here will fail the length test below.
+    (sleep-for 1)
     ;; Make sure the thread is still there.  This used to fail due to
     ;; a bug in thread.c:condition_wait_callback.
     (should (thread-alive-p new-thread))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]