Disable unit tests for SDL2 builds.

SDL_KillThread or an equivalent doesn't exist in SDL2. Achieving the same
functionality the "SDL2 way" is problematic here, so I'll just disable this
code for now.
This commit is contained in:
Boldizsár Lipka 2014-05-06 12:13:14 +02:00
parent 6fdbc33caf
commit a7e7ade92d

View file

@ -548,7 +548,7 @@ static int do_gameloop(int argc, char** argv)
}
loadscreen_manager.reset();
#if !SDL_VERSION_ATLEAST(2,0,0)
if(cmdline_opts.unit_test) {
if(cmdline_opts.timeout && *cmdline_opts.timeout > 0) {
int worker_result = 2; //Default timeout return value if worker fails to return
@ -593,6 +593,7 @@ static int do_gameloop(int argc, char** argv)
return worker_result;
}
}
#endif
if(game->play_test() == false) {
return 0;