Nikolay Sivov : comctl32/tests: Test more return values in tests (Clang).

Alexandre Julliard julliard at winehq.org
Mon Jul 4 13:46:05 CDT 2011


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Jul  3 11:50:26 2011 +0400

comctl32/tests: Test more return values in tests (Clang).

---

 dlls/comctl32/tests/listview.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index e0dfd72..15a0b5d 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -777,6 +777,8 @@ static void test_images(void)
     ok(r == 0, "should return zero\n");
 
     r = SendMessage(hwnd, LVM_SETICONSPACING, 0, MAKELONG(100,50));
+    ok(r != 0, "got 0\n");
+
     /* returns dimensions */
 
     r = SendMessage(hwnd, LVM_GETITEMCOUNT, 0, 0);
@@ -3856,7 +3858,7 @@ static void test_notifyformat(void)
        CCM_SETUNICODEFORMAT == LVM_SETUNICODEFORMAT */
     r = SendMessage(hwnd, LVM_GETUNICODEFORMAT, 0, 0);
     expect(0, r);
-    r = SendMessage(hwnd, WM_NOTIFYFORMAT, 0, NF_QUERY);
+    SendMessage(hwnd, WM_NOTIFYFORMAT, 0, NF_QUERY);
     /* set */
     r = SendMessage(hwnd, LVM_SETUNICODEFORMAT, 1, 0);
     expect(0, r);
@@ -4405,6 +4407,8 @@ static void test_approximate_viewrect(void)
     expect(MAKELONG(77,827), ret);
 
     ret = SendMessage(hwnd, LVM_SETICONSPACING, 0, MAKELPARAM(50, 50));
+    ok(ret != 0, "got 0\n");
+
     ret = SendMessage(hwnd, LVM_APPROXIMATEVIEWRECT, 11, MAKELPARAM(100,100));
     expect(MAKELONG(102,302), ret);
 




More information about the wine-cvs mailing list