lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1322 - nss-pam-ldapd/tests

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1322 - nss-pam-ldapd/tests



Author: arthur
Date: Sat Dec 11 22:40:57 2010
New Revision: 1322
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1322

Log:
include extra assertion checks

Modified:
   nss-pam-ldapd/tests/test_myldap.c

Modified: nss-pam-ldapd/tests/test_myldap.c
==============================================================================
--- nss-pam-ldapd/tests/test_myldap.c   Sat Dec 11 21:11:02 2010        (r1321)
+++ nss-pam-ldapd/tests/test_myldap.c   Sat Dec 11 22:40:57 2010        (r1322)
@@ -104,6 +104,7 @@
       printf("test_myldap: test_search(): ...\n");
   }
   printf("test_myldap: test_search(): %d entries returned: 
%s\n",i,ldap_err2string(rc));
+  assert(rc==LDAP_SUCCESS);
   /* perform another search */
   printf("test_myldap: test_search(): doing search...\n");
   search=myldap_search(session,nslcd_cfg->ldc_bases[0],
@@ -121,6 +122,7 @@
       printf("test_myldap: test_search(): ...\n");
   }
   printf("test_myldap: test_search(): %d entries returned: 
%s\n",i,ldap_err2string(rc));
+  assert(rc==LDAP_SUCCESS);
   /* clean up */
   myldap_session_close(session);
 }
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits