Try to kill the test thread after a minute, and exit after another minute.
This commit is contained in:
parent
528948291d
commit
2fe690b29e
|
@ -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)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user