summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml12
-rw-r--r--library/tcltest/tcltest.tcl4
-rw-r--r--tests/all.tcl4
3 files changed, 12 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 3abeb6b..d5c93c1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -48,16 +48,18 @@ matrix:
- os: osx
osx_image: xcode8
env:
- - MATRIX_EVAL="BUILD_DIR=macosx"
- - os: windows
- env:
- - MATRIX_EVAL="BUILD_DIR=win"
+ - MATRIX_EVAL="BUILD_DIR=macosx && NO_DIRECT_CONFIGURE=1"
+### C builds not currently supported on Windows instances
+# - os: windows
+# env:
+# - MATRIX_EVAL="BUILD_DIR=win"
before_install:
- eval "${MATRIX_EVAL}"
+ - export ERROR_ON_FAILURES=1
- cd ${BUILD_DIR}
install:
- - ./configure
+ - test -z "$NO_DIRECT_CONFIGURE" || ./configure
script:
- make
- make test
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 8e43859..0d55ff7 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -2696,7 +2696,7 @@ proc tcltest::GetMatchingDirectories {rootdir} {
# shell being tested
#
# Results:
-# None.
+# Whether there were any failures.
#
# Side effects:
# None.
@@ -2842,7 +2842,7 @@ proc tcltest::runAllTests { {shell ""} } {
puts [outputChannel] ""
puts [outputChannel] [string repeat ~ 44]
}
- return
+ return [info exists testFileFailures]
}
#####################################################################
diff --git a/tests/all.tcl b/tests/all.tcl
index d01a54d..f3463c6 100644
--- a/tests/all.tcl
+++ b/tests/all.tcl
@@ -14,4 +14,6 @@ package require Tcl 8.5
package require tcltest 2.2
namespace import tcltest::*
configure {*}$argv -testdir [file dir [info script]]
-runAllTests
+set ErrorOnFailures [info exists env(ERROR_ON_FAILURES)]
+unset -nocomplain env(ERROR_ON_FAILURES)
+if {[runAllTests] && $ErrorOnFailures} {exit 1}