James Hawkins : comctl32: Fix several failing tests in win95.

Alexandre Julliard julliard at winehq.org
Mon Sep 15 06:54:46 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Sun Sep 14 21:47:19 2008 -0500

comctl32: Fix several failing tests in win95.

---

 dlls/comctl32/tests/status.c |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/dlls/comctl32/tests/status.c b/dlls/comctl32/tests/status.c
index d0c19cb..d7cb25c 100644
--- a/dlls/comctl32/tests/status.c
+++ b/dlls/comctl32/tests/status.c
@@ -303,18 +303,28 @@ static void test_status_control(void)
 
     /* Set background color */
     r = SendMessage(hWndStatus, SB_SETBKCOLOR , 0, RGB(255,0,0));
-    expect(CLR_DEFAULT,r);
+    ok(r == CLR_DEFAULT ||
+       broken(r == 0), /* win95 */
+       "Expected %d, got %d\n", CLR_DEFAULT, r);
     r = SendMessage(hWndStatus, SB_SETBKCOLOR , 0, CLR_DEFAULT);
-    expect(RGB(255,0,0),r);
+    ok(r == RGB(255,0,0) ||
+       broken(r == 0), /* win95 */
+       "Expected %d, got %d\n", RGB(255,0,0), r);
 
     /* Add an icon to the status bar */
     hIcon = LoadIcon(NULL, IDI_QUESTION);
     r = SendMessage(hWndStatus, SB_SETICON, 1, (LPARAM) NULL);
-    ok(r != 0, "Expected non-zero, got %d\n", r);
+    ok(r != 0 ||
+       broken(r == 0), /* win95 */
+       "Expected non-zero, got %d\n", r);
     r = SendMessage(hWndStatus, SB_SETICON, 1, (LPARAM) hIcon);
-    ok(r != 0, "Expected non-zero, got %d\n", r);
+    ok(r != 0 ||
+       broken(r == 0), /* win95 */
+       "Expected non-zero, got %d\n", r);
     r = SendMessage(hWndStatus, SB_SETICON, 1, (LPARAM) NULL);
-    ok(r != 0, "Expected non-zero, got %d\n", r);
+    ok(r != 0 ||
+       broken(r == 0), /* win95 */
+       "Expected non-zero, got %d\n", r);
 
     /* Set the Unicode format */
     r = SendMessage(hWndStatus, SB_SETUNICODEFORMAT, FALSE, 0);
@@ -323,7 +333,9 @@ static void test_status_control(void)
     r = SendMessage(hWndStatus, SB_SETUNICODEFORMAT, TRUE, 0);
     expect(FALSE,r);
     r = SendMessage(hWndStatus, SB_GETUNICODEFORMAT, 0, 0);
-    expect(TRUE,r);
+    ok(r == TRUE ||
+       broken(r == FALSE), /* win95 */
+       "Expected TRUE, got %d\n", r);
 
     /* Reset number of parts */
     r = SendMessage(hWndStatus, SB_SETPARTS, 2, (LPARAM)nParts);




More information about the wine-cvs mailing list