kernel32: double the alarm timeout to prevent a failed test
André Hentschel
nerv at dawncrow.de
Fri Apr 30 11:38:59 CDT 2010
this prevents "failed" on wine if e.g. the PC is slow or is also doing some other work
---
dlls/kernel32/tests/pipe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index 948c704..b48ceec 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -794,9 +794,9 @@ static void test_NamedPipe_2(void)
DWORD alarmThreadId;
trace("test_NamedPipe_2 starting\n");
- /* Set up a ten second timeout */
+ /* Set up a twenty second timeout */
alarm_event = CreateEvent( NULL, TRUE, FALSE, NULL );
- alarmThread = CreateThread(NULL, 0, alarmThreadMain, (void *) 10000, 0, &alarmThreadId);
+ alarmThread = CreateThread(NULL, 0, alarmThreadMain, (void *) 20000, 0, &alarmThreadId);
/* The servers we're about to exercize do try to clean up carefully,
* but to reduce the change of a test failure due to a pipe handle
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list