X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fthreads.impure.lisp;h=7ebc17c91d00b930f6a5139a744e305838ae6a14;hb=8c6e2e85859766d2c4c6a272b952de2ebe467487;hp=ddd1ef0243f2f654884adb665075beb9c562b492;hpb=179de85ab4fdff049c72ddb2767b93d838494b09;p=sbcl.git diff --git a/tests/threads.impure.lisp b/tests/threads.impure.lisp index ddd1ef0..7ebc17c 100644 --- a/tests/threads.impure.lisp +++ b/tests/threads.impure.lisp @@ -37,18 +37,6 @@ (with-mutex (mutex) mutex))) -(with-test (:name (:with-mutex :timeout)) - (let ((m (make-mutex))) - (with-mutex (m) - (assert (null (join-thread (make-thread - (lambda () - (with-mutex (m :timeout 0.1) - t))))))) - (assert (join-thread (make-thread - (lambda () - (with-mutex (m :timeout 0.1) - t))))))) - (sb-alien:define-alien-routine "check_deferrables_blocked_or_lose" void (where sb-alien:unsigned-long)) @@ -84,6 +72,18 @@ ;;;; Now the real tests... +(with-test (:name (:with-mutex :timeout)) + (let ((m (make-mutex))) + (with-mutex (m) + (assert (null (join-thread (make-thread + (lambda () + (with-mutex (m :timeout 0.1) + t))))))) + (assert (join-thread (make-thread + (lambda () + (with-mutex (m :timeout 0.1) + t))))))) + (with-test (:name (:interrupt-thread :deferrables-unblocked-by-lock)) (let ((lock (sb-thread::make-mutex)) (thread (make-join-thread (lambda ()