Dan Kegel : quartz: Make clock test less flaky.

Alexandre Julliard julliard at winehq.org
Tue Oct 9 13:37:36 CDT 2007


Module: wine
Branch: master
Commit: 8e8f8401599dd49247b62294a77e3fe969ec8b8a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8e8f8401599dd49247b62294a77e3fe969ec8b8a

Author: Dan Kegel <dank at kegel.com>
Date:   Sat Oct  6 08:39:51 2007 -0700

quartz: Make clock test less flaky.

---

 dlls/quartz/tests/referenceclock.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/tests/referenceclock.c b/dlls/quartz/tests/referenceclock.c
index 1d02615..2e50c5a 100644
--- a/dlls/quartz/tests/referenceclock.c
+++ b/dlls/quartz/tests/referenceclock.c
@@ -66,8 +66,9 @@ static void test_IReferenceClock_methods(const char * clockdesc, IReferenceClock
     ok (hr == S_OK, "%s - Expected S_OK, got 0x%08x\n", clockdesc, hr);
 
     /* FIXME: How much deviation should be allowed after a sleep? */
+    /* 0.3% is common, and 0.4% is sometimes observed.  Let's try 0.6%. */
     diff = time2 - time1;
-    ok (9980000 <= diff && diff <= 10020000, "%s - Expected difference around 10000000, got %lu\n", clockdesc, diff);
+    ok (9940000 <= diff && diff <= 10060000, "%s - Expected difference around 10000000, got %lu\n", clockdesc, diff);
 
 }
 




More information about the wine-cvs mailing list