summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-04-24 20:26:59 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-04-24 20:26:59 +0000
commita07748cb62b80dafba39f172b70fe4f34a27a384 (patch)
tree578fa64e563420482c27a35041cabcd4b00014eb
parentbd7e126db21c1c6cc7f123205e521049ba36bbfb (diff)
improve handling of test_login_unknown
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1433 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--tests/test_pamcmds.expect3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_pamcmds.expect b/tests/test_pamcmds.expect
index 586a889..f897e16 100644
--- a/tests/test_pamcmds.expect
+++ b/tests/test_pamcmds.expect
@@ -111,9 +111,8 @@ proc test_login_authfail {uid passwd} {
# function to do login, expecting FAIL result
proc test_login_unknown {uid passwd} {
send "su - $uid -s /bin/sh\r"
- expect "Password:"
- send "$passwd\r"
expect {
+ "Password:" { send "$passwd\r"; exp_continue }
"Unknown id" {}
"\$ " abort
default abort