Fixed testprocess on 32-bit Windows
Previously the test would kill the child process while it was in the process of initializing (loading DLLs, etc) and this would cause the test to fail.
This commit is contained in:
1 parent
f8bace9b9b
commit
937b7e6aea
1 file changed
+5
-2
+5
-2
@@ -367,8 +367,11 @@ static int SDLCALL process_testKill(void *arg)
|
|||||||
result = SDL_WaitProcess(process, false, &exit_code);
|
result = SDL_WaitProcess(process, false, &exit_code);
|
||||||
SDLTest_AssertCheck(result == false, "Process should not have exited yet");
|
SDLTest_AssertCheck(result == false, "Process should not have exited yet");
|
||||||
|
|
||||||
SDLTest_AssertPass("About to call SDL_KillProcess(false)");
|
/* Wait for the child process to finish initializing */
|
||||||
result = SDL_KillProcess(process, false);
|
SDL_Delay(500);
|
||||||
|
|
||||||
|
SDLTest_AssertPass("About to call SDL_KillProcess(true)");
|
||||||
|
result = SDL_KillProcess(process, true);
|
||||||
SDLTest_AssertCheck(result == true, "Process should have exited");
|
SDLTest_AssertCheck(result == true, "Process should have exited");
|
||||||
|
|
||||||
exit_code = 0;
|
exit_code = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user