Commit ecdb5e82 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntoskrnl.exe/tests: Use coarser waits for timer tests.

In an attempt to mitigate intermittent failures on Linux. Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c65d9806
......@@ -648,13 +648,13 @@ static void test_sync(void)
/* test timers */
KeInitializeTimerEx(&timer, NotificationTimer);
timeout.QuadPart = -100;
timeout.QuadPart = -20 * 10000;
KeSetTimerEx(&timer, timeout, 0, NULL);
ret = wait_single(&timer, 0);
ok(ret == WAIT_TIMEOUT, "got %#x\n", ret);
ret = wait_single(&timer, -200);
ret = wait_single(&timer, -40 * 10000);
ok(ret == 0, "got %#x\n", ret);
ret = wait_single(&timer, 0);
......@@ -668,28 +668,28 @@ static void test_sync(void)
ret = wait_single(&timer, 0);
ok(ret == WAIT_TIMEOUT, "got %#x\n", ret);
ret = wait_single(&timer, -200);
ret = wait_single(&timer, -40 * 10000);
ok(ret == 0, "got %#x\n", ret);
ret = wait_single(&timer, 0);
ret = wait_single(&timer, -40 * 10000);
ok(ret == WAIT_TIMEOUT, "got %#x\n", ret);
KeCancelTimer(&timer);
KeSetTimerEx(&timer, timeout, 10, NULL);
KeSetTimerEx(&timer, timeout, 20, NULL);
ret = wait_single(&timer, 0);
ok(ret == WAIT_TIMEOUT, "got %#x\n", ret);
ret = wait_single(&timer, -200);
ret = wait_single(&timer, -40 * 10000);
ok(ret == 0, "got %#x\n", ret);
ret = wait_single(&timer, 0);
ok(ret == WAIT_TIMEOUT, "got %#x\n", ret);
ret = wait_single(&timer, -20 * 10000);
ret = wait_single(&timer, -40 * 10000);
ok(ret == 0, "got %#x\n", ret);
ret = wait_single(&timer, -20 * 10000);
ret = wait_single(&timer, -40 * 10000);
ok(ret == 0, "got %#x\n", ret);
KeCancelTimer(&timer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment