shunit2 icon indicating copy to clipboard operation
shunit2 copied to clipboard

Exit instead of returning when there are failures

Open JussiPekonen opened this issue 3 years ago • 0 comments

With return statement, running tests using shunit2 <file> will print out a warning message "can only `return' from a function or sourced script". This regression has been introduced after the 2.1.8 release.

Fixes: #158

JussiPekonen avatar Jun 27 '22 20:06 JussiPekonen