wldap32/tests: Skip tests if ldap_init failed (try 2)

André Hentschel webmaster at dawncrow.de
Tue Aug 9 12:31:01 CDT 2011


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

diff --git a/dlls/wldap32/tests/parse.c b/dlls/wldap32/tests/parse.c
index 4cf8564..ed37d88 100644
--- a/dlls/wldap32/tests/parse.c
+++ b/dlls/wldap32/tests/parse.c
@@ -128,7 +128,11 @@ START_TEST (parse)
     LDAP *ld;
 
     ld = ldap_initA((char *)"ldap.itd.umich.edu", 389 );
-    ok( ld != NULL, "ldap_init failed\n" );
+    if (!ld)
+    {
+        skip("ldap_init failed, skipping tests\n");
+        return;
+    }
 
     test_ldap_parse_sort_control( ld );
     test_ldap_search_extW( ld );
-- 
1.7.4.1




More information about the wine-patches mailing list