Try to kill the test thread after a minute, and exit after another minute.

This commit is contained in:
Eli Barzilay 2011-02-03 15:55:44 -05:00
parent 528948291d
commit 2fe690b29e

View File

@ -73,7 +73,13 @@
(lambda () (lambda ()
(sleep (* 60 timeout)) (sleep (* 60 timeout))
(echo "Timeout!") (echo "Timeout!")
(break-thread th))))) (break-thread th)
(sleep 60)
(echo " A minute has passed, killing the test thread!")
(kill-thread th)
(sleep 60)
(echo " Another minute passed, aborting!")
(abort 1 "Goodbye.")))))
(parameterize* ([exit-handler (parameterize* ([exit-handler
(lambda (n) (abort n "exit with error code ~a" n))] (lambda (n) (abort n "exit with error code ~a" n))]
[current-namespace (make-base-empty-namespace)]) [current-namespace (make-base-empty-namespace)])