[PATCH] ntdll/tests: Adjust timing on RtlWaitOnAddress tests.

Daniel Lehman dlehman25 at gmail.com
Sat Sep 7 00:07:38 CDT 2019


Signed-off-by: Daniel Lehman <dlehman25 at gmail.com>
---
my win10 laptop gets between 94 and 96.  looks like it also randomly happens on official tests:
http://test.winehq.org/data/765815729fc4af2472e60551364e3b29dccfbcff/win8_cw1-hd6800-t32/ntdll:om.html
http://test.winehq.org/data/765815729fc4af2472e60551364e3b29dccfbcff/win8_cw2-gtx560-t64/ntdll:om.html
---
 dlls/ntdll/tests/om.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c
index b232138387..5abfcb0f11 100644
--- a/dlls/ntdll/tests/om.c
+++ b/dlls/ntdll/tests/om.c
@@ -2115,7 +2115,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 >= 100 && ticks <= 1000, "got %u\n", ticks);
+    ok(ticks >= 90 && 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));
 
@@ -2130,7 +2130,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 >= 100 && ticks <= 1000, "got %u\n", ticks);
+        ok(ticks >= 90 && ticks <= 1000, "got %u\n", ticks);
 
         status = pRtlWaitOnAddress(&address, &compare, size << 1, &timeout);
         ok(!status, "got 0x%08x\n", status);
-- 
2.17.1




More information about the wine-devel mailing list