Make stuff regarding debug names much less complex.
[sbcl.git] / tests / interrupted-sleep.impure.lisp
blob72b4d3176d77334efb4fce4a45d8a7670f1a3014
1 #-sb-thread (invoke-restart 'run-tests::skip-file)
3 ;; test that SLEEP actually sleeps for at least the given time, even
4 ;; if interrupted by another thread exiting/a gc/anything
5 (with-test (:name (sleep :continue-sleeping-after-interrupt))
6 (let ((start-time (get-universal-time)))
7 (make-join-thread (lambda () (sleep 1) (sb-ext:gc :full t)))
8 (sleep 5)
9 (assert (>= (get-universal-time) (+ 5 start-time)))))