summaryrefslogtreecommitdiffstats
path: root/tests/all.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-10 13:10:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-10 13:10:23 (GMT)
commitfdf8dbb801759671f5e6c83be96cf8f78a8cb3cc (patch)
tree6be51a127548928e9608a8cad4ba3aca1f2fc2cf /tests/all.tcl
parent23f8f1f53c2ab0960a3389b9342637f928e27e2b (diff)
parent0e5885d7fab885a2ef6ee3d709a6745b0bf585fb (diff)
downloadtk-fdf8dbb801759671f5e6c83be96cf8f78a8cb3cc.zip
tk-fdf8dbb801759671f5e6c83be96cf8f78a8cb3cc.tar.gz
tk-fdf8dbb801759671f5e6c83be96cf8f78a8cb3cc.tar.bz2
Merge 8.6. Modify local xvfb-run script such that it works on macOS, and use it
Diffstat (limited to 'tests/all.tcl')
-rw-r--r--tests/all.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/all.tcl b/tests/all.tcl
index d15e5ca..b477218 100644
--- a/tests/all.tcl
+++ b/tests/all.tcl
@@ -14,6 +14,8 @@ package require tcltest 2.2
tcltest::configure {*}$argv
tcltest::configure -testdir [file normalize [file dirname [info script]]]
tcltest::configure -loadfile \
- [file join [tcltest::testsDirectory] constraints.tcl]
+ [file join [tcltest::testsDirectory] constraints.tcl]
tcltest::configure -singleproc 1
-tcltest::runAllTests
+set ErrorOnFailures [info exists env(ERROR_ON_FAILURES)]
+unset -nocomplain env(ERROR_ON_FAILURES)
+if {[tcltest::runAllTests] && $ErrorOnFailures} {exit 1}