X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.pure.lisp;h=81a987b8bbab1170bea11764caacf452686913d0;hb=aa8cdb795d6bb551aaecb6db38d5ef6571c698ed;hp=df8ee36cf6f9045571a3b96473e97cd207fbfce7;hpb=71d60093b1a9d80c4de6c5f51c6783eef86968d9;p=sbcl.git diff --git a/tests/interface.pure.lisp b/tests/interface.pure.lisp index df8ee36..81a987b 100644 --- a/tests/interface.pure.lisp +++ b/tests/interface.pure.lisp @@ -57,10 +57,22 @@ (assert (not (special-operator-p 'declare))) ;;; WITH-TIMEOUT should accept more than one form in its body. -(handler-bind ((sb-ext:timeout #'continue)) - (sb-ext:with-timeout 3 - (sleep 2) - (sleep 2))) +(with-test (:name :with-timeout-forms) + (handler-bind ((sb-ext:timeout #'continue)) + (sb-ext:with-timeout 3 + (sleep 2) + (sleep 2)))) + +;;; SLEEP should work with large integers as well -- no timers +;;; on win32, so don't test there. +#-win32 +(with-test (:name (sleep pretty-much-forever)) + (assert (eq :timeout + (handler-case + (sb-ext:with-timeout 1 + (sleep (ash 1 (* 2 sb-vm:n-word-bits)))) + (sb-ext:timeout () + :timeout))))) ;;; DOCUMENTATION should return nil, not signal slot-unbound (documentation 'fixnum 'type)