X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fpackages.impure.lisp;h=b2421b29570bde133adaad2710a60c64ac4958a5;hb=f16e93459cd73b1884e3d576c95e422f8e8a000e;hp=0a477b3a24a9d8600df4620e7de5a02283f06c67;hpb=666a3a77ee04225cf861ed8e1e7f378b8438d925;p=sbcl.git diff --git a/tests/packages.impure.lisp b/tests/packages.impure.lisp index 0a477b3..b2421b2 100644 --- a/tests/packages.impure.lisp +++ b/tests/packages.impure.lisp @@ -267,3 +267,16 @@ if a restart was invoked." ((and simple-condition program-error) (c) (assert (equal (list :foo) (simple-condition-format-arguments c))) :good))))) + +;;; MAKE-PACKAGE error in another thread blocking FIND-PACKAGE & FIND-SYMBOL +#+sb-thread +(with-test (:name :bug-511072) + (let* ((p (make-package :bug-511072)) + (sem (sb-thread:make-semaphore)) + (t2 (sb-thread:make-thread (lambda () + (handler-bind ((error (lambda (c) + (sb-thread:signal-semaphore sem) + (signal c)))) + (make-package :bug-511072)))))) + (sb-thread:wait-on-semaphore sem) + (assert (eq 'cons (read-from-string "CL:CONS")))))