Performance improvement for specific tests (#3559)

This commit is contained in:
Martin Griffin 2023-11-13 15:35:08 +00:00 committed by GitHub
commit 934fe46008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,17 +162,18 @@ void CB2_TestRunner(void)
break; break;
case STATE_ASSIGN_TEST: case STATE_ASSIGN_TEST:
if (gTestRunnerState.test == __stop_tests) while (1)
{ {
gTestRunnerState.state = STATE_EXIT; if (gTestRunnerState.test == __stop_tests)
return; {
} gTestRunnerState.state = STATE_EXIT;
return;
if (gTestRunnerState.test->runner != &gAssumptionsRunner }
&& !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name)) if (gTestRunnerState.test->runner != &gAssumptionsRunner
{ && !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name))
gTestRunnerState.state = STATE_NEXT_TEST; ++gTestRunnerState.test;
return; else
break;
} }
MgbaPrintf_(":N%s", gTestRunnerState.test->name); MgbaPrintf_(":N%s", gTestRunnerState.test->name);