Fix compiler warning; minor harness driver cleanup; fix test build for SDL versions compiled with --disable-joystick or --disable-haptic
This commit is contained in:
parent
1b63b3fd52
commit
2e4dc511a0
6 changed files with 60 additions and 12 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
static SDLTest_CommonState *state;
|
||||
|
||||
|
||||
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
||||
static void
|
||||
quit(int rc)
|
||||
|
@ -46,9 +45,6 @@ main(int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
// Needed?
|
||||
// state->window_flags |= SDL_WINDOW_RESIZABLE;
|
||||
|
||||
/* Parse commandline */
|
||||
for (i = 1; i < argc;) {
|
||||
int consumed;
|
||||
|
@ -84,7 +80,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
if (consumed < 0) {
|
||||
fprintf(stderr,
|
||||
"Usage: %s %s [--iterations #] [--execKey #] [--seed string]\n",
|
||||
"Usage: %s %s [--iterations #] [--execKey #] [--seed string] [--filter suite_name|test_name]\n",
|
||||
argv[0], SDLTest_CommonUsage(state));
|
||||
quit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue