Skip to content

Commit

Permalink
Fix duplicate calls for oneTimeTearDown()
Browse files Browse the repository at this point in the history
Additional oneTimeTearDown() was called at shunit2 exit because there
seemed to be no set for __shunit_clean flag. Fix for kward#112
  • Loading branch information
cezanne committed Mar 1, 2022
1 parent 47be8b2 commit e09d0bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shunit2
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,7 @@ _shunit_execSuite
if ! oneTimeTearDown; then
_shunit_fatal "oneTimeTearDown() returned non-zero return code."
fi
__shunit_clean=${SHUNIT_TRUE}

# Generate a report summary.
_shunit_generateReport
Expand Down

0 comments on commit e09d0bf

Please sign in to comment.