Skip to content

Commit 6789181

Browse files
committed
put some timing information to try to narrow down occasional drdr timeout
1 parent 760a672 commit 6789181

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

redex-test/redex/tests/ryr-test.rkt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
(require net/url
33
racket/port
44
racket/file
5+
racket/format
56
file/gunzip
67
file/untar)
78

@@ -39,13 +40,18 @@
3940
#:key path->string))
4041

4142
(for ([file (in-list racket-files)])
42-
(printf "running ~a\n" file)
43+
(define start-time (current-process-milliseconds))
44+
(printf "starting ~a\n" file)
4345
(flush-output)
4446
(let/ec k
4547
(parameterize ([error-escape-handler (λ args (k (void)))])
4648
(dynamic-require file #f)))
4749
(flush-output (current-error-port))
48-
(flush-output))
50+
(flush-output)
51+
(printf "finished ~a, took ~a seconds\n"
52+
file
53+
(~r (/ (min 0 (- (current-process-milliseconds) start-time)) 1000)
54+
#:precision 2)))
4955

5056
(delete-directory/files tmp-dir)
5157

0 commit comments

Comments
 (0)