X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fthreads.pure.lisp;h=bc2b94cc152d2323749d208b2b478a0b5d577183;hb=1f03c7f326823245708a84af86b31ac72bdb1742;hp=8bfeea8cd136c2a909f893504e6a093caad39c19;hpb=b18df732481502bca0040c56685979712ec58754;p=sbcl.git diff --git a/tests/threads.pure.lisp b/tests/threads.pure.lisp index 8bfeea8..bc2b94c 100644 --- a/tests/threads.pure.lisp +++ b/tests/threads.pure.lisp @@ -265,22 +265,30 @@ #+sb-thread (with-test (:name symbol-value-in-thread.7) - (let ((child (make-thread (lambda ())))) + (let ((child (make-thread (lambda ()))) + (error-occurred nil)) + (join-thread child) (handler-case (symbol-value-in-thread 'this-is-new child) (symbol-value-in-thread-error (e) + (setf error-occurred t) (assert (eq child (thread-error-thread e))) (assert (eq 'this-is-new (cell-error-name e))) (assert (equal (list :read :thread-dead) - (sb-thread::symbol-value-in-thread-error-info e))))))) + (sb-thread::symbol-value-in-thread-error-info e))))) + (assert error-occurred))) #+sb-thread (with-test (:name symbol-value-in-thread.8) - (let ((child (make-thread (lambda ())))) + (let ((child (make-thread (lambda ()))) + (error-occurred nil)) + (join-thread child) (handler-case (setf (symbol-value-in-thread 'this-is-new child) t) (symbol-value-in-thread-error (e) + (setf error-occurred t) (assert (eq child (thread-error-thread e))) (assert (eq 'this-is-new (cell-error-name e))) (assert (equal (list :write :thread-dead) - (sb-thread::symbol-value-in-thread-error-info e))))))) + (sb-thread::symbol-value-in-thread-error-info e))))) + (assert error-occurred)))