Jörg Höhle : winmm/tests: Give flaky progress test more time.

Alexandre Julliard julliard at winehq.org
Wed Nov 11 08:33:25 CST 2009


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

Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date:   Sun Nov  8 22:50:41 2009 +0100

winmm/tests: Give flaky progress test more time.

---

 dlls/winmm/tests/mci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winmm/tests/mci.c b/dlls/winmm/tests/mci.c
index 05da6cd..5ce8cd4 100644
--- a/dlls/winmm/tests/mci.c
+++ b/dlls/winmm/tests/mci.c
@@ -405,8 +405,8 @@ static void test_asyncWAVE(HWND hwnd)
     ok(strcmp(buf,"2000"), "mci status position: %s\n", buf);
     trace("position after Sleep: %sms\n",buf);
     p2 = atoi(buf);
-    /* MS-Windows' 15.625ms timer may return after 93ms? */
-    ok(p2>=(WORD)(((WORD)(100/15.625))*15.625),"not enough time elapsed %ums\n",p2);
+    /* Some machines reach 79ms only during the 100ms sleep. */
+    ok(p2>=67,"not enough time elapsed %ums\n",p2);
     test_notification(hwnd,"play (nowait)",0);
 
     err = mciSendString("pause mysound wait", NULL, 0, hwnd);




More information about the wine-cvs mailing list