mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 19:24:16 +01:00
improve the performance for specific tests
Co-authored-by: Martin Griffin <martin.griffin@algosport.co.uk>
This commit is contained in:
parent
87aaeca623
commit
74de34c8b8
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user