* rsh.exp: Drain buffers on klist test to avoid wedging rsh on
authorTom Yu <tlyu@mit.edu>
Wed, 5 Jul 2000 00:57:42 +0000 (00:57 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 5 Jul 2000 00:57:42 +0000 (00:57 +0000)
exit under HP/UX.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12533 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/dejagnu/krb-standalone/ChangeLog
src/tests/dejagnu/krb-standalone/rsh.exp

index acf80bece99c96bf1b0531e5e40cf26055d874fd..4600525970e252908449e0802dec756e3ff7ec5f 100644 (file)
@@ -1,5 +1,8 @@
 2000-07-04  Tom Yu  <tlyu@mit.edu>
 
+       * rsh.exp: Drain buffers on klist test to avoid wedging rsh on
+       exit under HP/UX.
+
        * gssapi.exp: Rework significantly to deal with HP/UX lossage that
        probably resulted from when either the client or the server wound
        up blocking on tty output.  Abstract things a little more.  Remove
index 09b5222fb28c58d755b2bac966222471309c6234..ed47af2c63610d6c75c43c2c3b775d94097f1a5f 100644 (file)
@@ -162,7 +162,9 @@ proc rsh_test { } {
 
     spawn $RSH $hostname -f -k $REALMNAME -D 3544 -A $BINSH -c $tmppwd/klist.wrap 
     expect {
-       "Ticket cache:" { }
+       "Ticket cache:*\r" {
+           expect eof
+       }
        "klist: No credentials cache file found" {
            fail "$testname (not forwarded)"
            return
@@ -191,7 +193,9 @@ proc rsh_test { } {
     set testname "encrypted rsh forwarding tickets"
     spawn $RSH $hostname -x -f -k $REALMNAME -D 3544 -A $BINSH -c $tmppwd/klist.wrap 
     expect {
-       "Ticket cache:" { }
+       "Ticket cache:*\r" {
+           expect eof
+       }
        "klist: No credentials cache file found" {
            fail "$testname (not forwarded)"
            return