improve the performance for specific tests

Co-authored-by: Martin Griffin <martin.griffin@algosport.co.uk>
This commit is contained in:
Zhengwen Jiang 2023-11-13 01:48:47 -06:00
parent 87aaeca623
commit 74de34c8b8

View File

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