Fix contract profiler tests to test more.
This commit is contained in:
parent
889ad57fff
commit
cc0e67638c
|
@ -1,5 +1,7 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
|
(require racket/port)
|
||||||
|
|
||||||
(provide (all-defined-out))
|
(provide (all-defined-out))
|
||||||
|
|
||||||
(struct contract-profile
|
(struct contract-profile
|
||||||
|
@ -25,7 +27,9 @@
|
||||||
(define dry-run? (make-parameter #f))
|
(define dry-run? (make-parameter #f))
|
||||||
|
|
||||||
(define-syntax-rule (with-output-to-report-file file body ...)
|
(define-syntax-rule (with-output-to-report-file file body ...)
|
||||||
(unless (dry-run?)
|
(if (dry-run?)
|
||||||
(with-output-to-file file
|
(parameterize ([current-output-port (open-output-nowhere)])
|
||||||
#:exists 'replace
|
body ...)
|
||||||
(lambda () body ...))))
|
(with-output-to-file file
|
||||||
|
#:exists 'replace
|
||||||
|
(lambda () body ...))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user