comctl32/ipaddress: Skip test on Win95 with common controls 4.70 (try3)

Nikolay Sivov bunglehead at gmail.com
Wed May 27 07:10:50 CDT 2009


For version 4.0 we are skipping earlier on initialization.

Changelog:
    - try3: don't test handle before win_skip()
    - try2: use win_skip()
    - Skip test on Win95 with common controls 4.70

>From 6bd1c88eda8530d52b86b000d790c2d1482e47a6 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed, 27 May 2009 16:02:47 +0400
Subject: Skip test on Win95 with common controls 4.70

---
 dlls/comctl32/tests/ipaddress.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/ipaddress.c b/dlls/comctl32/tests/ipaddress.c
index d04223c..85f92b1 100644
--- a/dlls/comctl32/tests/ipaddress.c
+++ b/dlls/comctl32/tests/ipaddress.c
@@ -33,8 +33,6 @@ static HWND create_ipaddress_control (void)
     handle = CreateWindowEx(0, WC_IPADDRESS, NULL,
 			    WS_BORDER|WS_VISIBLE, 0, 0, 0, 0,
 			    NULL, NULL, NULL, NULL);
-    assert(handle);
-
     return handle;
 }
 
@@ -45,6 +43,11 @@ static void test_get_set_text(void)
     INT r;
 
     hwnd = create_ipaddress_control();
+    if (!hwnd)
+    {
+        win_skip("IPAddress control not implemented\n");
+        return;
+    }
 
     /* check text just after creation */
     r = GetWindowText(hwnd, ip, sizeof(ip)/sizeof(CHAR));
-- 
1.5.6.5





More information about the wine-patches mailing list