From 6b8c169fc519546f949c8881ac3bf8af136ad843 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 22 Sep 2007 21:29:17 +0000 Subject: remove test for alloc_lsd() because we don't use struct ldap_service_search_descriptor any more git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@414 ef36b2f9-881f-0410-afb5-c4e39611909c --- tests/test_cfg.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'tests') diff --git a/tests/test_cfg.c b/tests/test_cfg.c index 76aa92f..6cbcf83 100644 --- a/tests/test_cfg.c +++ b/tests/test_cfg.c @@ -163,32 +163,6 @@ static void test_parse_map_statement(void) /* FIXME: implement */ } -static void test_alloc_lsd(void) -{ - struct ldap_service_search_descriptor mylsd; - struct ldap_service_search_descriptor *lsd; - /* set up mylsd */ - mylsd.lsd_base="mybase"; - mylsd.lsd_scope=-2; - mylsd.lsd_filter="myfilter"; - mylsd.lsd_next=NULL; - /* test passing existing lsd */ - lsd=&mylsd; - alloc_lsd(&lsd); - assert(lsd==&mylsd); - assertstreq(lsd->lsd_base,"mybase"); - assertstreq(lsd->lsd_filter,"myfilter"); - /* try passing a NULL value */ - lsd=NULL; - alloc_lsd(&lsd); - assert(lsd!=NULL); - assert(lsd!=&mylsd); - assert(lsd->lsd_base==NULL); - assert(lsd->lsd_scope==-1); - assert(lsd->lsd_filter==NULL); - assert(lsd->lsd_next==NULL); -} - static void test_tokenize(void) { const char **opts; @@ -217,7 +191,6 @@ int main(int UNUSED(argc),char UNUSED(*argv[])) test_parse_scope(); test_parse_map(); test_parse_map_statement(); - test_alloc_lsd(); test_tokenize(); return EXIT_SUCCESS; } -- cgit v1.2.3