Add tests to audio suite; update harness filter logic

This commit is contained in:
Andreas Schiffler 2013-01-31 08:45:30 -08:00
parent 0c9fca187f
commit ade15e571f
3 changed files with 230 additions and 32 deletions

View file

@ -37,7 +37,8 @@ main(int argc, char *argv[])
Uint64 userExecKey = 0;
char *userRunSeed = NULL;
char *filter = NULL;
int i;
int i, done;
SDL_Event event;
/* Initialize test framework */
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
@ -103,6 +104,15 @@ main(int argc, char *argv[])
/* Call Harness */
result = SDLTest_RunSuites(testSuites, (const char *)userRunSeed, userExecKey, (const char *)filter, testIterations);
/* Empty event queue */
done = 0;
for (i=0; i<100; i++) {
while (SDL_PollEvent(&event)) {
SDLTest_CommonEvent(state, &event, &done);
}
SDL_Delay(10);
}
/* Clean up */
if (userRunSeed != NULL) {
SDL_free(userRunSeed);