Skip to content

Commit

Permalink
Fix nasa#537, Fail tests on startup and teardown failures
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Sep 2, 2020
1 parent d12808c commit a5a0183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ut_assert/src/utbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ void UT_BSP_EndTest(const UtAssert_TestCounter_t *TestCounters)
(unsigned int)TestCounters->TestSegmentCount);
OS_BSP_ConsoleOutput_Impl(Message, strlen(Message));

if (TestCounters->CaseCount[UTASSERT_CASETYPE_FAILURE] > 0)
if ((TestCounters->CaseCount[UTASSERT_CASETYPE_FAILURE] > 0) ||
(TestCounters->CaseCount[UTASSERT_CASETYPE_TSF] > 0) ||
(TestCounters->CaseCount[UTASSERT_CASETYPE_TTF] > 0))
{
OS_BSP_SetExitCode(OS_ERROR);
}
Expand Down

0 comments on commit a5a0183

Please sign in to comment.