(text/x-markdown)
Even if _all_ tests were to fail, the script `all.tcl` would still exit with code 0...
That breaks automation, because the caller does not know of any test-failures.
The patch below addresses this problem:
```patch
--- tests/all.tcl 2020-10-12 16:39:22.000000000 -0400
+++ tests/all.tcl 2023-11-19 21:19:34.128221000 -0500
@@ -55,5 +55,5 @@
# cleanup
puts stdout "\nTests ended at [eval $timeCmd]"
+set failCount [llength $::tcltest::failFiles]
::tcltest::cleanupTests 1
-return
-
+exit [expr $failCount > 0]
```
|