diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-02-01 22:25:32 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-02-01 22:25:32 +0000 |
commit | 52204a6d4131cd51fff5e0bcccadc481bb89c768 (patch) | |
tree | e34ae427a3752e7cdf8187014a7543b541596d3f /tests | |
parent | 767cd6dd800734fbfac1c96626856d4c10722111 (diff) |
enable _nss_ldap_initgroups_dyn() test because it's working now
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@603 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_group.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_group.c b/tests/test_group.c index 70bc7da..5eaa7ca 100644 --- a/tests/test_group.c +++ b/tests/test_group.c @@ -65,11 +65,9 @@ int main(int argc,char *argv[]) struct group groupresult; char buffer[1024]; enum nss_status res; - int errnocp; -#ifdef REENABLE_WHEN_WORKING - long int start,size=40; + int errnocp=0; + long int start=0,size=40; gid_t *gidlist=(gid_t *)buffer; -#endif /* REENABLE_WHEN_WORKING */ /* test getgrnam() */ printf("\nTEST getgrnam()\n"); @@ -89,7 +87,6 @@ int main(int argc,char *argv[]) else printf("errno=%d:%s\n",(int)errnocp,strerror(errnocp)); -#ifdef REENABLE_WHEN_WORKING /* test initgroups() */ printf("\nTEST initgroups()\n"); res=_nss_ldap_initgroups_dyn("arthur",10,&start,&size,&gidlist,size,&errnocp); @@ -103,7 +100,6 @@ int main(int argc,char *argv[]) } else printf("errno=%d:%s\n",(int)errnocp,strerror(errnocp)); -#endif /* REENABLE_WHEN_WORKING */ /* test {set,get,end}grent() */ printf("\nTEST {set,get,end}grent()\n"); |