svn rev #23661: trunk/src/tests/dejagnu/config/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue Jan 19 12:20:45 EST 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23661
Commit By: ghudson
Log Message:
In kinit_anonymous, fail out if we receive a password request from
kinit, instead of hanging.
Changed Files:
U trunk/src/tests/dejagnu/config/default.exp
Modified: trunk/src/tests/dejagnu/config/default.exp
===================================================================
--- trunk/src/tests/dejagnu/config/default.exp 2010-01-14 19:27:33 UTC (rev 23660)
+++ trunk/src/tests/dejagnu/config/default.exp 2010-01-19 17:20:45 UTC (rev 23661)
@@ -2270,7 +2270,17 @@
# Use kinit to get a ticket.
#
spawn $KINIT -5 -f -n $name@$REALMNAME
- expect eof
+ expect {
+ "Password for $name@$REALMNAME:" {
+ fail "kinit_anonymous (password requested)"
+ return 0
+ }
+ timeout {
+ fail "kinit_anonymous (timeout)"
+ return 0
+ }
+ eof { }
+ }
if ![check_exit_status kinit] {
fail "kinit anonymous"
}
More information about the cvs-krb5
mailing list