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:
parent
6fdbc33caf
commit
a7e7ade92d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue