Hans Leidekker : wldap32: Use a test query that is more likely to succeed within 20 seconds.

Alexandre Julliard julliard at winehq.org
Tue Oct 21 07:07:06 CDT 2008


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Oct 21 13:53:37 2008 +0200

wldap32: Use a test query that is more likely to succeed within 20 seconds.

---

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

diff --git a/dlls/wldap32/tests/parse.c b/dlls/wldap32/tests/parse.c
index f54f15b..ade3061 100644
--- a/dlls/wldap32/tests/parse.c
+++ b/dlls/wldap32/tests/parse.c
@@ -34,7 +34,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
     LDAPMessage *res = NULL;
     struct l_timeval timeout;
 
-    key.sk_attrtype = (char *)"cn";
+    key.sk_attrtype = (char *)"ou";
     key.sk_matchruleoid = NULL;
     key.sk_reverseorder = FALSE;
 
@@ -47,7 +47,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
     ctrls[1] = NULL;
     timeout.tv_sec = 20;
     timeout.tv_usec = 0;
-    ret = ldap_search_ext_sA( ld, (char *)"", LDAP_SCOPE_SUBTREE, (char *)"(cn=Verisign*)", NULL, 0, ctrls, NULL, &timeout, 10, &res );
+    ret = ldap_search_ext_sA( ld, (char *)"", LDAP_SCOPE_ONELEVEL, (char *)"(ou=*)", NULL, 0, ctrls, NULL, &timeout, 10, &res );
     ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
     if (ret)
     {
@@ -84,7 +84,7 @@ START_TEST (parse)
 {
     LDAP *ld;
 
-    ld = ldap_initA((char *)"directory.verisign.com", 389 );
+    ld = ldap_initA((char *)"ldap.itd.umich.edu", 389 );
     ok( ld != NULL, "ldap_init failed\n" );
 
     test_ldap_parse_sort_control( ld );




More information about the wine-cvs mailing list