diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-20 13:55:27 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-20 13:55:27 +0000 |
commit | f928c97f77c13048177fb31eb1377bd99d2a07b7 (patch) | |
tree | 96a343541a0f47a00271060e0fe4515eb04af1cf /tests | |
parent | fdf0e5e5f73979c27dea13af2bec72070316082c (diff) |
have assertion on correct search
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@500 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_myldap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_myldap.c b/tests/test_myldap.c index cf0f836..1a5354a 100644 --- a/tests/test_myldap.c +++ b/tests/test_myldap.c @@ -177,7 +177,7 @@ static void test_two_searches(void) LDAP_SCOPE_SUBTREE, "(&(objectclass=posixGroup)(gidNumber=6100))", attrs); - assert(search1!=NULL); + assert(search2!=NULL); /* get a result from search2 */ entry=myldap_get_entry(search2); @@ -195,7 +195,6 @@ static void test_two_searches(void) assert((vals!=NULL)&&(vals[0]!=NULL)); printf("test_two_searches(): [search1] cn=%s\n",vals[0]); - /* TODO: call myldap_session_cleanup() or myldap_search_free() */ } |