mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
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.
This commit is contained in:
parent
9c4d2afaa5
commit
26b5426de8
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user