You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When shunit2 is executed in standalone mode (in Bash shell) and there are failing test cases, there will be a warning message "can only `return' from a function or sourced script" printed out to the shell after the execution.
Description
When shunit2 is executed in standalone mode (in Bash shell) and there are failing test cases, there will be a warning message "can only `return' from a function or sourced script" printed out to the shell after the execution.
Steps to reproduce
./shunit2 <file>
Expected result
The command will exit with a non-zero exit code and the test report contains only details of the tests and where they failed.
Actual result
The report printout contains an unnecessary warning "can only `return' from a function or sourced script" in addition to the test results.
Notes
There is no issue when the test file (given above) sources the shunit2 file. Therefore, this issue affects only the standalone mode.
The text was updated successfully, but these errors were encountered: