X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.pure.lisp;h=7e43f9746104a2658337dc9e0db2010d3e9ce986;hb=9c9d6dbdc28a8bfe70be09f35263e9ec02411d0e;hp=2612bf38604fb2b167bdc3a6eba72731490b0b98;hpb=8fb553e9d867f6345932beaa78fcd07d8d4e555b;p=sbcl.git diff --git a/tests/interface.pure.lisp b/tests/interface.pure.lisp index 2612bf3..7e43f97 100644 --- a/tests/interface.pure.lisp +++ b/tests/interface.pure.lisp @@ -70,11 +70,13 @@ ;;; SLEEP should not cons except on 32-bit platforms when ;;; (> (mod seconds 1) (* most-positive-fixnum 1e-9)) (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)))) + (handler-case (sb-ext:with-timeout 5 + (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)))) + (timeout ()))) ;;; Changes to make SLEEP cons less led to SLEEP ;;; not sleeping at all on 32-bit platforms when @@ -88,7 +90,7 @@ :timeout))))) ;;; SLEEP should work with large integers as well -(with-test (:name (sleep pretty-much-forever)) +(with-test (:name (sleep :pretty-much-forever)) (assert (eq :timeout (handler-case (sb-ext:with-timeout 1