From e736e3e789a7f8fc04aa8959aec55356554b9ea8 Mon Sep 17 00:00:00 2001 From: KyungWoon Cho Date: Tue, 1 Mar 2022 18:34:52 +0900 Subject: [PATCH] Fix duplicate calls for oneTimeTearDown() Additional oneTimeTearDown() was called at shunit2 exit because there seemed to be no set for __shunit_clean flag. Fix for kward/shunit2#121 --- shunit2 | 1 + 1 file changed, 1 insertion(+) diff --git a/shunit2 b/shunit2 index 57a45da..ead9de6 100755 --- a/shunit2 +++ b/shunit2 @@ -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