Austin Lund : kernel32/tests: Increase timeouts to avoid test failures in CreateRemoteThread.
Alexandre Julliard
julliard at winehq.org
Mon Oct 25 10:58:21 CDT 2010
Module: wine
Branch: master
Commit: 86c39000a45d6b1660ce5215014bdf572231d072
URL: http://source.winehq.org/git/wine.git/?a=commit;h=86c39000a45d6b1660ce5215014bdf572231d072
Author: Austin Lund <austin.lund at gmail.com>
Date: Mon Oct 25 11:56:48 2010 +1000
kernel32/tests: Increase timeouts to avoid test failures in CreateRemoteThread.
---
dlls/kernel32/tests/thread.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index c285b01..fe1cc7d 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -310,18 +310,18 @@ static VOID test_CreateRemoteThread(void)
ok(ret == 2, "ret=%u, err=%u\n", ret, GetLastError());
/* thread still suspended, so wait times out */
- ret = WaitForSingleObject(hEvent, 100);
+ ret = WaitForSingleObject(hEvent, 1000);
ok(ret == WAIT_TIMEOUT, "wait did not time out, ret=%u\n", ret);
ret = ResumeThread(hThread);
ok(ret == 1, "ret=%u, err=%u\n", ret, GetLastError());
/* wait that doesn't time out */
- ret = WaitForSingleObject(hEvent, 100);
+ ret = WaitForSingleObject(hEvent, 1000);
ok(ret == WAIT_OBJECT_0, "object not signaled, ret=%u\n", ret);
/* wait for thread end */
- ret = WaitForSingleObject(hThread, 100);
+ ret = WaitForSingleObject(hThread, 1000);
ok(ret == WAIT_OBJECT_0, "waiting for thread failed, ret=%u\n", ret);
CloseHandle(hThread);
@@ -330,7 +330,7 @@ static VOID test_CreateRemoteThread(void)
threadFunc_CloseHandle,
hRemoteEvent, 0, &tid);
ok(hThread != NULL, "CreateRemoteThread failed, err=%u\n", GetLastError());
- ret = WaitForSingleObject(hThread, 100);
+ ret = WaitForSingleObject(hThread, 1000);
ok(ret == WAIT_OBJECT_0, "waiting for thread failed, ret=%u\n", ret);
CloseHandle(hThread);
@@ -341,7 +341,7 @@ static VOID test_CreateRemoteThread(void)
ok(hThread != NULL, "CreateRemoteThread failed, err=%u\n", GetLastError());
/* closed handle, so wait times out */
- ret = WaitForSingleObject(hEvent, 100);
+ ret = WaitForSingleObject(hEvent, 1000);
ok(ret == WAIT_TIMEOUT, "wait did not time out, ret=%u\n", ret);
/* check that remote SetEvent() failed */
More information about the wine-cvs
mailing list