Alexandre Julliard : user32/tests: Try to fix a test that frequently fails on Windows.

Alexandre Julliard julliard at winehq.org
Wed Jul 18 12:44:40 CDT 2012


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jul 18 11:48:43 2012 +0200

user32/tests: Try to fix a test that frequently fails on Windows.

---

 dlls/user32/tests/win.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index dd5069b..3b7f1a8 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -6688,7 +6688,7 @@ static void test_FlashWindowEx(void)
 {
     HWND hwnd;
     FLASHWINFO finfo;
-    BOOL ret;
+    BOOL prev, ret;
 
     if (!pFlashWindowEx)
     {
@@ -6757,8 +6757,7 @@ static void test_FlashWindowEx(void)
        "FlashWindowEx returned with %d\n", GetLastError());
 
     SetLastError(0xdeadbeef);
-    ret = pFlashWindowEx(&finfo);
-    ok(ret, "previous window state should be active\n");
+    prev = pFlashWindowEx(&finfo);
 
     ok(finfo.cbSize == sizeof(FLASHWINFO), "FlashWindowEx modified cdSize to %x\n", finfo.cbSize);
     ok(finfo.hwnd == hwnd, "FlashWindowEx modified hwnd to %p\n", finfo.hwnd);
@@ -6770,7 +6769,7 @@ static void test_FlashWindowEx(void)
     SetLastError(0xdeadbeef);
     ret = pFlashWindowEx(&finfo);
 todo_wine
-    ok(!ret, "previous window state should not be active\n");
+    ok(prev != ret, "previous window state should be different\n");
 
     DestroyWindow( hwnd );
 }




More information about the wine-cvs mailing list