aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-04-18 08:05:05 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-04-18 08:13:20 +0200
commitddf03e7964c3d345c5eeb7f09fa0496616ab520c (patch)
tree26c957b56d63042365d8d137b7121bb5867a2aea
parentMove test runner diff to variable. (diff)
downloadcalp-ddf03e7964c3d345c5eeb7f09fa0496616ab520c.tar.gz
calp-ddf03e7964c3d345c5eeb7f09fa0496616ab520c.tar.xz
Flush ports between tests.
In some cases diffs would appear in the wrong places. This also ensures a cleaner slate for each test.
-rwxr-xr-xtests/run-tests.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-tests.scm b/tests/run-tests.scm
index dfa9df8a..f1ff7b03 100755
--- a/tests/run-tests.scm
+++ b/tests/run-tests.scm
@@ -98,6 +98,7 @@ fi
(test-runner-aux-value! runner (transform-time-of-day (gettimeofday)))))
(test-runner-on-test-end! runner
(lambda (runner)
+ (flush-all-ports)
(when (verbose?) (display (make-indent depth)))
(case (test-result-kind runner)
((pass) (display (green "X")))