try to make this test's timing better behaved
This commit is contained in:
parent
cd73a8b02a
commit
d53d3c3528
|
@ -186,11 +186,13 @@ Errors/exceptions and other kinds of control?
|
||||||
(printf "DrDr Ignore! random-seed ~s\n" seed)
|
(printf "DrDr Ignore! random-seed ~s\n" seed)
|
||||||
(random-seed seed))
|
(random-seed seed))
|
||||||
|
|
||||||
|
(define start-time (current-seconds))
|
||||||
(let loop ([n 32])
|
(let loop ([n 32])
|
||||||
(unless (zero? n)
|
(unless (zero? n)
|
||||||
|
(when (< (- (current-seconds) start-time) 120)
|
||||||
(printf ".") (flush-output)
|
(printf ".") (flush-output)
|
||||||
(let ([p (gen-prog)])
|
(let ([p (gen-prog)])
|
||||||
;(pretty-print p)
|
;(pretty-print p)
|
||||||
(eval p (namespace-anchor->namespace ns-here)))
|
(eval p (namespace-anchor->namespace ns-here)))
|
||||||
(loop (- n 1))))
|
(loop (- n 1)))))
|
||||||
(newline)
|
(newline)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user