Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-09-22 23:29:17 +0200
committerArthur de Jong <arthur@arthurdejong.org>2007-09-22 23:29:17 +0200
commit6b8c169fc519546f949c8881ac3bf8af136ad843 (patch)
tree74010a6eabaf34cf348084da028bb2c1d2740fbb /tests
parenta37deef71ccbdb246d40627822e43b33834d27aa (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cfg.c27
1 files changed, 0 insertions, 27 deletions
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;
}