summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2001-11-02 19:06:52 +0000
committerTom Yu <tlyu@mit.edu>2001-11-02 19:06:52 +0000
commit6b986c00ab36f6fac040ca38fdf974af4f26dbd6 (patch)
treecaf89257c108fdfcc9c04cd0dff815dac0fc9693 /src
parent6d1c2867ba344396951c92bad65ee7f919baa878 (diff)
downloadkrb5-6b986c00ab36f6fac040ca38fdf974af4f26dbd6.tar.gz
krb5-6b986c00ab36f6fac040ca38fdf974af4f26dbd6.tar.xz
krb5-6b986c00ab36f6fac040ca38fdf974af4f26dbd6.zip
* gssftp.exp: Calling send_error from within a dejagnu test is
wrong. So is calling exit. Fix to not do these things. Expect eof rather than "\r" so as to drain pty buffers and avoid deadlock. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13928 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/tests/dejagnu/krb-standalone/ChangeLog7
-rw-r--r--src/tests/dejagnu/krb-standalone/gssftp.exp7
2 files changed, 10 insertions, 4 deletions
diff --git a/src/tests/dejagnu/krb-standalone/ChangeLog b/src/tests/dejagnu/krb-standalone/ChangeLog
index c8d17c77a1..59eaae32cb 100644
--- a/src/tests/dejagnu/krb-standalone/ChangeLog
+++ b/src/tests/dejagnu/krb-standalone/ChangeLog
@@ -1,3 +1,10 @@
+2001-11-02 Tom Yu <tlyu@mit.edu>
+
+ * gssftp.exp: Calling send_error from within a dejagnu test is
+ wrong. So is calling exit. Fix to not do these things. Expect
+ eof rather than "\r" so as to drain pty buffers and avoid
+ deadlock.
+
2001-10-26 Ezra Peisach <epeisach@mit.edu>
* rcp.exp, rsh_exp (stop_rsh_daemon): Do not close a process and
diff --git a/src/tests/dejagnu/krb-standalone/gssftp.exp b/src/tests/dejagnu/krb-standalone/gssftp.exp
index d0b49d320d..800a40f43b 100644
--- a/src/tests/dejagnu/krb-standalone/gssftp.exp
+++ b/src/tests/dejagnu/krb-standalone/gssftp.exp
@@ -398,7 +398,8 @@ proc ftp_test { } {
set testname "quit"
send "quit\r"
- expect "\r"
+ expect_after
+ expect eof
if [check_exit_status $testname] {
pass $testname
}
@@ -436,7 +437,5 @@ if [info exists home] {
}
if { $status != 0 } {
- send_error "ERROR: error in ftp.exp\n"
- send_error "$msg\n"
- exit 1
+ perror "error in gssftp.exp: $msg"
}