ntdll/tests: Relax tests for RtlWaitOnAddress() timeout.
RtlWaitOnAddress() shouldn't be waiting for less than 100 ms here, and it isn't, but using GetTickCount() to measure this can result in up to 15 ms of error, causing frequent test failures. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9689e38a15
commit
c82c5e96a9
|
@ -2304,7 +2304,7 @@ static void test_wait_on_address(void)
|
|||
status = pRtlWaitOnAddress(&address, &compare, 8, &timeout);
|
||||
ticks = GetTickCount() - ticks;
|
||||
ok(status == STATUS_TIMEOUT, "got 0x%08x\n", status);
|
||||
ok(ticks >= 90 && ticks <= 1000, "got %u\n", ticks);
|
||||
ok(ticks >= 80 && ticks <= 1000, "got %u\n", ticks);
|
||||
ok(address == 0, "got %s\n", wine_dbgstr_longlong(address));
|
||||
ok(compare == 0, "got %s\n", wine_dbgstr_longlong(compare));
|
||||
|
||||
|
@ -2319,7 +2319,7 @@ static void test_wait_on_address(void)
|
|||
status = pRtlWaitOnAddress(&address, &compare, size, &timeout);
|
||||
ticks = GetTickCount() - ticks;
|
||||
ok(status == STATUS_TIMEOUT, "got 0x%08x\n", status);
|
||||
ok(ticks >= 90 && ticks <= 1000, "got %u\n", ticks);
|
||||
ok(ticks >= 80 && ticks <= 1000, "got %u\n", ticks);
|
||||
|
||||
status = pRtlWaitOnAddress(&address, &compare, size << 1, &timeout);
|
||||
ok(!status, "got 0x%08x\n", status);
|
||||
|
|
Loading…
Reference in New Issue