Commit edf48d17 authored by antirez's avatar antirez
Browse files

Sentinel test: jump to next unit on test failure.

Sentinel tests are designed to be dependent on the previous tests in the
same unit, so usually we can't continue with the next test in the same
unit if a previous test failed.
parent 7f521d76
...@@ -145,6 +145,8 @@ proc test {descr code} { ...@@ -145,6 +145,8 @@ proc test {descr code} {
set msg [string range $error 10 end] set msg [string range $error 10 end]
puts [colorstr red $msg] puts [colorstr red $msg]
if {$::pause_on_error} pause_on_error if {$::pause_on_error} pause_on_error
puts "(Jumping to next unit after error)"
return -code continue
} else { } else {
# Re-raise, let handler up the stack take care of this. # Re-raise, let handler up the stack take care of this.
error $error $::errorInfo error $error $::errorInfo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment