[2/2] kernel32/tests: Avoid busy-looping in APC deadlock tests.
Sebastian Lackner
sebastian at fds-team.de
Wed Nov 25 18:46:39 CST 2015
Spotted by Amine Khaldi.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
On Wine the tests behave identical, and still reproduce the deadlock correctly.
dlls/kernel32/tests/sync.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/sync.c b/dlls/kernel32/tests/sync.c
index 7d714d0..afdbc99 100644
--- a/dlls/kernel32/tests/sync.c
+++ b/dlls/kernel32/tests/sync.c
@@ -2580,8 +2580,7 @@ START_TEST(sync)
{
if (!strcmp(argv[2], "apc_deadlock"))
{
- HANDLE handle = GetCurrentThread();
- for (;;) WaitForMultipleObjectsEx(1, &handle, FALSE, INFINITE, TRUE);
+ for (;;) SleepEx(INFINITE, TRUE);
}
return;
}
--
2.6.2
More information about the wine-patches
mailing list