summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:15:01 +0000
committerArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:15:01 +0000
commit2caeef4254d1e6dfb42863754cfd5479a6f849c2 (patch)
tree8f124afd5c52dd127a28453693d671cb02c9f3b9 /tests
parent4197ec3fa13ea9c3ad85ae29234b7566e9a61661 (diff)
support children search scope for systems that have it
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1917 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_cfg.c b/tests/test_cfg.c
index d54551e..3fce39c 100644
--- a/tests/test_cfg.c
+++ b/tests/test_cfg.c
@@ -98,6 +98,10 @@ static void test_parse_scope(void)
assert(cfg.scope == LDAP_SCOPE_BASE);
handle_scope(__FILE__, __LINE__, "scope", "bASe", &cfg);
assert(cfg.scope == LDAP_SCOPE_BASE);
+#ifdef LDAP_SCOPE_CHILDREN
+ handle_scope(__FILE__, __LINE__, "scope", "children", &cfg);
+ assert(cfg.scope == LDAP_SCOPE_CHILDREN);
+#endif /* LDAP_SCOPE_CHILDREN */
/* most other values should call exit():
handle_scope(__FILE__, __LINE__, "scope", "BSAE", &cfg); */
}