Include more information in TR optimizer test failures.
original commit: 5e7d67ffa7013dffabb3a3fa20142ae359c34063
This commit is contained in:
parent
2051b79030
commit
f43114c41f
|
@ -27,17 +27,16 @@
|
|||
(test-suite "Log Comparison"
|
||||
;; ugly, but otherwise rackunit spews the entire logs to
|
||||
;; stderr, and they can be quite long
|
||||
(check-true
|
||||
(equal?
|
||||
;; actual log
|
||||
(with-input-from-string
|
||||
(string-append "(" (generate-log name dir) ")")
|
||||
read)
|
||||
;; expected log
|
||||
(with-input-from-file (build-path dir name)
|
||||
(lambda () ; from the test file
|
||||
(read-line) ; skip the #;
|
||||
(read)))))))
|
||||
(check-equal?
|
||||
;; actual log
|
||||
(with-input-from-string
|
||||
(string-append "(" (generate-log name dir) ")")
|
||||
read)
|
||||
;; expected log
|
||||
(with-input-from-file (build-path dir name)
|
||||
(lambda () ; from the test file
|
||||
(read-line) ; skip the #;
|
||||
(read))))))
|
||||
|
||||
|
||||
(define-runtime-path tests-dir "./tests")
|
||||
|
|
Loading…
Reference in New Issue
Block a user