X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdeadline.impure.lisp;h=9d0b4f97962e7811078b77d5ec1541bb57e258b6;hb=d8659f1e656234e8f0f47d5295b503dd6cff4aba;hp=32d19f63d2628a636b4ce3760f57c636d5aea603;hpb=fe962ba01d267b92f638c8f0d19be41054219f04;p=sbcl.git diff --git a/tests/deadline.impure.lisp b/tests/deadline.impure.lisp index 32d19f6..9d0b4f9 100644 --- a/tests/deadline.impure.lisp +++ b/tests/deadline.impure.lisp @@ -15,8 +15,13 @@ #+(and sb-thread (not sb-lutex)) (progn (assert-timeout - (let ((lock (sb-thread:make-mutex))) - (sb-thread:make-thread (lambda () (sb-thread:get-mutex lock) (sleep 5))) + (let ((lock (sb-thread:make-mutex)) + (waitp t)) + (sb-thread:make-thread (lambda () + (sb-thread:get-mutex lock) + (setf waitp nil) + (sleep 5))) + (loop while waitp do (sleep 0.01)) (sb-impl::with-deadline (:seconds 1) (sb-thread:get-mutex lock))))