fix test case count reporting for the place case

This commit is contained in:
Robby Findler 2015-04-08 10:16:13 -05:00
parent 44260da512
commit bdddd3c80d

View File

@ -96,13 +96,14 @@
;; If the tests use `rackunit`, collect result stats: ;; If the tests use `rackunit`, collect result stats:
(define test-results (define test-results
(test-log #:display? #f #:exit? #f)) (test-log #:display? #f #:exit? #f))
;; Return test results. If we don't get this far, the result ;; Return test results. If we don't get this far, the result
;; code of the place determines whether it the test counts as ;; code of the place determines whether it the test counts as
;; successful. ;; successful.
(place-channel-put pch (place-channel-put pch
;; If the test did not use `rackunit`, claim ;; If the test did not use `rackunit`, claim
;; success: ;; success:
(if (zero? (car test-results)) (if (zero? (cdr test-results))
(cons 0 1) (cons 0 1)
test-results)))) test-results))))