changed behavior in these programs. Wait for eof in some cases to
avoid hanging.
* rsh.exp: Wait for eof to prevent hanging.
* gssapi.exp: Use $KINIT -5 to deal with new kinit behavior.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12004
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-02-06 Tom Yu <tlyu@mit.edu>
+
+ * standalone.exp: Use $KLIST -5 and $KDESTROY -5 to deal with
+ changed behavior in these programs. Wait for eof in some cases to
+ avoid hanging.
+
+ * rsh.exp: Wait for eof to prevent hanging.
+
+ * gssapi.exp: Use $KINIT -5 to deal with new kinit behavior.
+
Fri Nov 6 10:05:31 1998 Ezra Peisach <epeisach@mit.edu>
* gssftp.exp: Changes to deal with new text messages in ftp/ftpd.
global spawn_id
# Use kinit to get a ticket.
- spawn $KINIT -c $ccache $name@$REALMNAME
+ spawn $KINIT -5 -c $ccache $name@$REALMNAME
expect {
"Password for $name@$REALMNAME:" {
verbose "kinit started"
expect {
"\r" { }
}
+ expect eof
if ![check_exit_status kinit] {
return 0
}
return
}
}
-
+ expect eof
if ![check_exit_status $testname] {
return
}
}
# Make sure that klist can see the ticket.
- spawn $KLIST
+ spawn $KLIST -5
expect {
- -re "Ticket cache:\[ \]*$tmppwd/tkt.*Default principal:\[ \]*krbtest/admin@$REALMNAME.*krbtgt/$REALMNAME@$REALMNAME\r\n" {
+ -re "Ticket cache:\[ \]*(.+:)?$tmppwd/tkt.*Default principal:\[ \]*krbtest/admin@$REALMNAME.*krbtgt/$REALMNAME@$REALMNAME\r\n" {
verbose "klist started"
}
timeout {
}
}
- expect {
+ expect {
"\r" { }
+ eof { }
}
if ![check_exit_status "klist"] {
pass "klist"
# Destroy the ticket.
- spawn $KDESTROY
+ spawn $KDESTROY -5
if ![check_exit_status "kdestroy"] {
return
}
pass "kdestroy"
# Double check that the ticket was destroyed.
- spawn $KLIST
+ spawn $KLIST -5
expect {
-re "klist: No credentials cache file found.*\r\n" {
verbose "klist started"