Always run the tearDown() even if test is ignored

This commit is contained in:
jsalling
2016-12-24 13:56:04 -06:00
parent 0603c1cf1e
commit 65e401f3de
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -67,7 +67,11 @@ void tearDown(void)
{
endPutcharSpy(); /* Stop suppressing test output */
if (SetToOneToFailInTearDown == 1)
{
/* These will be skipped internally if already failed/ignored */
TEST_FAIL_MESSAGE("<= Failed in tearDown");
TEST_IGNORE_MESSAGE("<= Ignored in tearDown");
}
if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0))
{
UnityPrint(": [[[[ Test Should Have Passed But Did Not ]]]]");