aboutsummaryrefslogtreecommitdiff
path: root/tests/run-tests.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-08-24 19:38:42 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-08-24 19:39:12 +0200
commit2f79da027729c6f84427cb2cbfb5a63d52006004 (patch)
tree18365f1a0ca8e9466a456ecc794a9bc19c9ded15 /tests/run-tests.scm
parentFix warning calls in string->datetime. (diff)
downloadcalp-2f79da027729c6f84427cb2cbfb5a63d52006004.tar.gz
calp-2f79da027729c6f84427cb2cbfb5a63d52006004.tar.xz
Warnings are errors when running tests.
Should prevent warnings from slipping through the cracks.
Diffstat (limited to 'tests/run-tests.scm')
-rwxr-xr-xtests/run-tests.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run-tests.scm b/tests/run-tests.scm
index fd91c264..5aba4f4f 100755
--- a/tests/run-tests.scm
+++ b/tests/run-tests.scm
@@ -68,6 +68,9 @@
;; but is initially bound to #f.
(test-begin "tests")
+;; Forces all warnings to be explicitly handled by tests
+((@ (calp util exceptions) warnings-are-errors) #t)
+
(for fname in files
(format (current-error-port) "Running test ~a~%" fname)
(test-group