Fixed KNOWN_FAILING tests running memory leak checks when unneeded (#3102)
This commit is contained in:
parent
68ce97cd90
commit
81522554c2
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue