X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsignals.impure.lisp;h=093bf23cbafb7aa4c3e4933a414c22927069abb3;hb=40f6a8f39da1faba169a081dfd3aeb7ad8391f55;hp=7be8bac8af9449ec92f87af7c251ad9eb1a4ca58;hpb=2bb123efd9f1566b2bff388b55d57698a69b69ba;p=sbcl.git diff --git a/tests/signals.impure.lisp b/tests/signals.impure.lisp index 7be8bac..093bf23 100644 --- a/tests/signals.impure.lisp +++ b/tests/signals.impure.lisp @@ -65,3 +65,19 @@ sb-unix:sigint) (sb-sys:interactive-interrupt () :condition))))) + +(with-test (:name :bug-640516) + ;; On Darwin interrupting a SLEEP so that it took longer than + ;; the requested amount caused it to hang. + (assert + (handler-case + (sb-ext:with-timeout 10 + (let (to) + (handler-bind ((sb-ext:timeout (lambda (c) + (unless to + (setf to t) + (sleep 2) + (continue c))))) + (sb-ext:with-timeout 0.1 (sleep 1) t)))) + (sb-ext:timeout () + nil))))