lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1433 - nss-pam-ldapd/tests

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1433 - nss-pam-ldapd/tests



Author: arthur
Date: Sun Apr 24 22:26:59 2011
New Revision: 1433
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1433

Log:
improve handling of test_login_unknown

Modified:
   nss-pam-ldapd/tests/test_pamcmds.expect

Modified: nss-pam-ldapd/tests/test_pamcmds.expect
==============================================================================
--- nss-pam-ldapd/tests/test_pamcmds.expect     Fri Apr 22 12:03:50 2011        
(r1432)
+++ nss-pam-ldapd/tests/test_pamcmds.expect     Sun Apr 24 22:26:59 2011        
(r1433)
@@ -111,9 +111,8 @@
 # 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
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits