try to make this test's timing better behaved

This commit is contained in:
Robby Findler 2013-01-04 16:58:13 -06:00
parent cd73a8b02a
commit d53d3c3528

View File

@ -186,11 +186,13 @@ Errors/exceptions and other kinds of control?
(printf "DrDr Ignore! random-seed ~s\n" seed)
(random-seed seed))
(define start-time (current-seconds))
(let loop ([n 32])
(unless (zero? n)
(printf ".") (flush-output)
(let ([p (gen-prog)])
;(pretty-print p)
(eval p (namespace-anchor->namespace ns-here)))
(loop (- n 1))))
(when (< (- (current-seconds) start-time) 120)
(printf ".") (flush-output)
(let ([p (gen-prog)])
;(pretty-print p)
(eval p (namespace-anchor->namespace ns-here)))
(loop (- n 1)))))
(newline)