X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.pure.lisp;h=81a987b8bbab1170bea11764caacf452686913d0;hb=c553e4be6da2d18f0827f190589c88e837b8b8a6;hp=285ddcb572006fba41b526764ba540784ddb3dd7;hpb=fb8e5ded0b56f50de2024efbcc9ce68b401415f5;p=sbcl.git diff --git a/tests/interface.pure.lisp b/tests/interface.pure.lisp index 285ddcb..81a987b 100644 --- a/tests/interface.pure.lisp +++ b/tests/interface.pure.lisp @@ -63,6 +63,17 @@ (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)