X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.pure.lisp;h=81a987b8bbab1170bea11764caacf452686913d0;hb=0a15b6bbf9d5d3a64b5ac08bb96b6e5ec221d2ae;hp=2a27b35b50b7b8e34cb371e80ab2b0164aaac637;hpb=ed3295bc583cd14104130441e9ff1ad40fa5e484;p=sbcl.git diff --git a/tests/interface.pure.lisp b/tests/interface.pure.lisp index 2a27b35..81a987b 100644 --- a/tests/interface.pure.lisp +++ b/tests/interface.pure.lisp @@ -57,15 +57,28 @@ (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) (documentation 'class 'type) (documentation (find-class 'class) 'type) +(documentation 'foo 'structure) ;;; DECODE-UNIVERSAL-TIME should accept second-resolution time-zones. (macrolet ((test (ut time-zone list)