sbcl.sbcl/tests/wait-for.pure.lisp
Douglas Katzman eb1370a4c1 Reduce the regression suite run time some more
With the exception of a failing files that I haven't tested, each file completes
in under 55 seconds. Given ~200 machines, the whole suite finishes in that time.
And fwiw the passing files leave no temporary junk in the source tree.
2019-03-15 20:00:22 -04:00

7 lines
256 B
Common Lisp

(with-test (:name (:wait-for :basics))
(assert (not (sb-ext:wait-for nil :timeout 0.1)))
(assert (eql 42 (sb-ext:wait-for 42)))
(let ((n 0))
(assert (eql 100 (sb-ext:wait-for (when (= 100 (incf n))
n))))))