Use for instead of while - just a bit of cleanup
This commit is contained in:
parent
126ed26b3d
commit
2b8fa6047d
@ -145,8 +145,7 @@ int main(int argc, char **argv)
|
|||||||
if(!tt_silent)
|
if(!tt_silent)
|
||||||
printf("\n%s\n", tt_tests[0].filename);
|
printf("\n%s\n", tt_tests[0].filename);
|
||||||
|
|
||||||
int i = 0;
|
for(int i = 0; i < tt_test_count; i++)
|
||||||
while(i < tt_test_count)
|
|
||||||
{
|
{
|
||||||
tt_current = &tt_tests[i];
|
tt_current = &tt_tests[i];
|
||||||
|
|
||||||
@ -209,7 +208,6 @@ int main(int argc, char **argv)
|
|||||||
printf("%sF%s", TT_CLR_YEL, TT_CLR_RES);
|
printf("%sF%s", TT_CLR_YEL, TT_CLR_RES);
|
||||||
}
|
}
|
||||||
|
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int retval = failed+crashed;
|
int retval = failed+crashed;
|
||||||
@ -226,13 +224,11 @@ int main(int argc, char **argv)
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
// Print any errors
|
// Print any errors
|
||||||
i = 0;
|
for(int i = 0; i < tt_test_count; i++)
|
||||||
while(i < tt_test_count)
|
|
||||||
{
|
{
|
||||||
if(tt_tests[i].status)
|
if(tt_tests[i].status)
|
||||||
printf("%s", tt_tests[i].output);
|
printf("%s", tt_tests[i].output);
|
||||||
free(tt_tests[i].output);
|
free(tt_tests[i].output);
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user