X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftime.pure.lisp;h=797b4650dc7c0de8055bd71f6858c853c06bed4a;hb=d3df7e8508d37a831ecf06a2c42ddb6ede1d99fa;hp=ab40157a50e06f420c84b7dc8a64f91b6b9d185c;hpb=d45e8a2e9167150c8283783152d2449bd8d59d2d;p=sbcl.git diff --git a/tests/time.pure.lisp b/tests/time.pure.lisp index ab40157..797b465 100644 --- a/tests/time.pure.lisp +++ b/tests/time.pure.lisp @@ -13,18 +13,18 @@ ;;; Test for monotonicity of GET-INTERNAL-RUN-TIME. (funcall (compile nil - (lambda (n-seconds) - (declare (type fixnum n-seconds)) - (let* ((n-internal-time-units - (* n-seconds - internal-time-units-per-second)) - (time0 (get-internal-run-time)) - (time1 (+ time0 n-internal-time-units))) - (loop - (let ((time (get-internal-run-time))) - (assert (>= time time0)) - (when (>= time time1) - (return))))))) + '(lambda (n-seconds) + (declare (type fixnum n-seconds)) + (let* ((n-internal-time-units + (* n-seconds + internal-time-units-per-second)) + (time0 (get-internal-run-time)) + (time1 (+ time0 n-internal-time-units))) + (loop + (let ((time (get-internal-run-time))) + (assert (>= time time0)) + (when (>= time time1) + (return))))))) 3) (locally