mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Performance improvement for specific tests (#3559)
This commit is contained in:
commit
934fe46008
@ -162,17 +162,18 @@ void CB2_TestRunner(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case STATE_ASSIGN_TEST:
|
case STATE_ASSIGN_TEST:
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
if (gTestRunnerState.test == __stop_tests)
|
if (gTestRunnerState.test == __stop_tests)
|
||||||
{
|
{
|
||||||
gTestRunnerState.state = STATE_EXIT;
|
gTestRunnerState.state = STATE_EXIT;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gTestRunnerState.test->runner != &gAssumptionsRunner
|
if (gTestRunnerState.test->runner != &gAssumptionsRunner
|
||||||
&& !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name))
|
&& !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name))
|
||||||
{
|
++gTestRunnerState.test;
|
||||||
gTestRunnerState.state = STATE_NEXT_TEST;
|
else
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
MgbaPrintf_(":N%s", gTestRunnerState.test->name);
|
MgbaPrintf_(":N%s", gTestRunnerState.test->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user