X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.pure.lisp;h=90d58f96e6ad0ceadd6979aa9b630af165661dd2;hb=0d51ca7e5e624dc3bad5c87e14211e8e6f7b3a45;hp=8a4d2fd90dfc63b80bec4e39c9140222a26abb32;hpb=13909586f2c9f3397c3a276c7b6f92d62089f9e2;p=sbcl.git diff --git a/tests/interface.pure.lisp b/tests/interface.pure.lisp index 8a4d2fd..90d58f9 100644 --- a/tests/interface.pure.lisp +++ b/tests/interface.pure.lisp @@ -68,12 +68,15 @@ (sleep 2)))) ;;; SLEEP should not cons -(with-test (:name (sleep :non-consing) :fails-on '(or (not :x86-64) :win32)) - (ctu:assert-no-consing (sleep 0.00001))) - -;;; SLEEP should work with large integers as well -- no timers -;;; on win32, so don't test there. -(with-test (:name (sleep pretty-much-forever) :skipped-on :win32) +(with-test (:name (sleep :non-consing) :fails-on :win32) + (ctu:assert-no-consing (sleep 0.00001s0)) + (locally (declare (notinline sleep)) + (ctu:assert-no-consing (sleep 0.00001s0)) + (ctu:assert-no-consing (sleep 0.00001d0)) + (ctu:assert-no-consing (sleep 1/100000003)))) + +;;; SLEEP should work with large integers as well +(with-test (:name (sleep pretty-much-forever)) (assert (eq :timeout (handler-case (sb-ext:with-timeout 1