summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-05-23 20:05:14 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-05-23 20:05:14 +0000
commitfe80f17681ffe35d995f99b2c8cd2e25c2ae5e3d (patch)
treece6d62126121bc6cdc616e5a19194630f12729c3 /tests
parentfffc5e98f6efe65e9c680ed319fdd87e42e51c3e (diff)
add test case for two-character user name
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1466 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r--tests/test_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_common.c b/tests/test_common.c
index 6911108..f065f13 100644
--- a/tests/test_common.c
+++ b/tests/test_common.c
@@ -38,6 +38,7 @@ static void test_isvalidname(void)
assert(isvalidname("foo\\bar"));
assert(!isvalidname("\\foo\\bar"));
assert(!isvalidname("foo\\bar\\"));
+ assert(isvalidname("me")); /* try short name */
}
/* the main program... */