Rémi Bernon : ntdll/tests: Add InterruptTimeBias to fix spurious test failures.

Alexandre Julliard julliard at winehq.org
Mon Mar 15 16:59:14 CDT 2021


Module: wine
Branch: master
Commit: 97d2802d1b265636afaab16efb463ff9dfb3c03e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=97d2802d1b265636afaab16efb463ff9dfb3c03e

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Mar 10 12:22:32 2021 +0100

ntdll/tests: Add InterruptTimeBias to fix spurious test failures.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/time.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/tests/time.c b/dlls/ntdll/tests/time.c
index 931bf765aa7..51d9115b87c 100644
--- a/dlls/ntdll/tests/time.c
+++ b/dlls/ntdll/tests/time.c
@@ -243,14 +243,13 @@ static void test_user_shared_data_time(void)
         do
         {
             pRtlQueryUnbiasedInterruptTime(&t1);
-            t2 = read_ksystem_time(&user_shared_data->InterruptTime);
+            t2 = read_ksystem_time(&user_shared_data->InterruptTime) - user_shared_data->InterruptTimeBias;
             pRtlQueryUnbiasedInterruptTime(&t3);
         } while(t3 < t1 && i++ < 1); /* allow for wrap, but only once */
 
         ok(t1 <= t2, "USD InterruptTime / RtlQueryUnbiasedInterruptTime are out of order %s %s\n",
            wine_dbgstr_longlong(t1), wine_dbgstr_longlong(t2));
-        ok(t2 <= t3 || broken(t2 == t3 + 82410089070) /* w864 has some weird offset on testbot */,
-           "USD InterruptTime / RtlQueryUnbiasedInterruptTime are out of order %s %s\n",
+        ok(t2 <= t3, "USD InterruptTime / RtlQueryUnbiasedInterruptTime are out of order %s %s\n",
            wine_dbgstr_longlong(t2), wine_dbgstr_longlong(t3));
     }
 }




More information about the wine-cvs mailing list