* default.exp: Add an eof clause to avoid breakage if rlogin exits
authorTom Yu <tlyu@mit.edu>
Wed, 9 Aug 2000 22:00:57 +0000 (22:00 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 9 Aug 2000 22:00:57 +0000 (22:00 +0000)
too quickly.

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

src/tests/dejagnu/config/ChangeLog
src/tests/dejagnu/config/default.exp

index 718698bbdf068acb97ffadaf5ac8e1932a1664c7..38d2b95f1d451cb64be9c70e730ddf21bef77c1b 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-09  Tom Yu  <tlyu@mit.edu>
+
+       * default.exp: Add an eof clause to avoid breakage if rlogin exits
+       too quickly.
+
 2000-08-08  Ezra Peisach  <epeisach@mit.edu>
 
        * default.exp: Create krb.conf and krb.realms files for v4
index 459cdfebd02a3dbf28953ba2dd5cfd1f43092d2a..76a27cfabba232b65298b0ffa094614b84fc8310 100644 (file)
@@ -1445,6 +1445,12 @@ proc setup_root_shell { testname } {
            stop_root_shell
            return 0
        }
+       eof {
+           perror "eof from rlogin $hostname -l root"
+           stop_root_shell
+           catch "expect_after"
+           return 0
+       }
     }
 
     expect_after {