Fixed KNOWN_FAILING tests running memory leak checks when unneeded (#3102)

This commit is contained in:
Eduardo Quezada D'Ottone 2023-07-04 12:19:38 -04:00 committed by GitHub
parent 68ce97cd90
commit 81522554c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ void CB2_TestRunner(void)
if (gTestRunnerState.test->runner->tearDown)
gTestRunnerState.test->runner->tearDown(gTestRunnerState.test->data);
if (gTestRunnerState.result == gTestRunnerState.expectedResult
if (gTestRunnerState.result == TEST_RESULT_PASS
&& !gTestRunnerState.expectLeaks)
{
const struct MemBlock *head = HeapHead();