From a5a01833c791ce6a946aaa7ea49629319fd659a3 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Tue, 25 Aug 2020 18:04:10 -0400 Subject: [PATCH] Fix #537, Fail tests on startup and teardown failures --- ut_assert/src/utbsp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ut_assert/src/utbsp.c b/ut_assert/src/utbsp.c index ee68f3183..1569c1fa2 100644 --- a/ut_assert/src/utbsp.c +++ b/ut_assert/src/utbsp.c @@ -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); }