X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fthreads.pure.lisp;h=3d7d5242aebea4408be4605ea059c8a1053d60bf;hb=961c7076f5fba67ddba0e12dd131104834348b1a;hp=6b58125ea26512455c3fc19fd8fac2a297688af2;hpb=4bcaeb66d7095e4668bf076e8f4d7e3b6363e2f8;p=sbcl.git diff --git a/tests/threads.pure.lisp b/tests/threads.pure.lisp index 6b58125..3d7d524 100644 --- a/tests/threads.pure.lisp +++ b/tests/threads.pure.lisp @@ -58,10 +58,11 @@ :fails-on :sb-lutex) (let* ((lock (make-mutex)) (foo (get-mutex lock)) + (bar nil) (thread (make-thread (lambda () (sb-sys:without-interrupts - (with-mutex (lock) - :fini)))))) + (with-mutex (lock) + (setf bar t))))))) (sleep 1) (assert (thread-alive-p thread)) (terminate-thread thread) @@ -70,4 +71,5 @@ (release-mutex lock) (sleep 1) (assert (not (thread-alive-p thread))) - (assert (eq :fini (join-thread thread))))) + (assert (eq :aborted (join-thread thread :default :aborted))) + (assert bar)))