Paul Vriens : comctl32/tests: Fix some test failures on older comctl32 versions.

Alexandre Julliard julliard at winehq.org
Mon Oct 12 11:19:41 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Oct  9 21:44:58 2009 +0200

comctl32/tests: Fix some test failures on older comctl32 versions.

---

 dlls/comctl32/tests/datetime.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tests/datetime.c b/dlls/comctl32/tests/datetime.c
index 7cd08a0..1de433c 100644
--- a/dlls/comctl32/tests/datetime.c
+++ b/dlls/comctl32/tests/datetime.c
@@ -678,7 +678,9 @@ static void test_wm_set_get_text(void)
     hWnd = create_datetime_control(0);
 
     ret = SendMessage(hWnd, WM_SETTEXT, 0, (LPARAM)a_str);
-    expect(CB_ERR, ret);
+    ok(CB_ERR == ret ||
+       broken(1 == ret), /* comctl32 <= 4.72 */
+       "Expected CB_ERR, got %ld\n", ret);
 
     buff[0] = 0;
     ret = SendMessage(hWnd, WM_GETTEXT, sizeof(buff), (LPARAM)buff);




More information about the wine-cvs mailing list