diff options
author | Ben Elliston <bje@gnu.org> | 2016-03-27 01:31:10 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2016-03-27 08:05:05 +1100 |
commit | 8d2062e95e02c9c575ef6295afbd5df45bf2c2dd (patch) | |
tree | 5b1067a93caf5bfc77175d16239ad4fd243752f8 | |
parent | 038cf7d9fa9e3ac1b7432955e11c763b52d7223c (diff) | |
download | dejagnu-8d2062e95e02c9c575ef6295afbd5df45bf2c2dd.zip dejagnu-8d2062e95e02c9c575ef6295afbd5df45bf2c2dd.tar.gz dejagnu-8d2062e95e02c9c575ef6295afbd5df45bf2c2dd.tar.bz2 |
* lib/remote.exp (standard_wait): Append any trailing characters
to $output that may be still in $expect_out(buffer) when eof is
matched. Remove arbitrary limitation in the ".+" matching case,
similar to the change to local_exec on 2016-02-17.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/remote.exp | 10 |
2 files changed, 11 insertions, 6 deletions
@@ -1,3 +1,10 @@ +2016-03-27 Ben Elliston <bje@gnu.org> + + * lib/remote.exp (standard_wait): Append any trailing characters + to $output that may be still in $expect_out(buffer) when eof is + matched. Remove arbitrary limitation in the ".+" matching case, + similar to the change to local_exec on 2016-02-17. + 2016-03-23 Ben Elliston <bje@gnu.org> * Makefile.am (baseboard_DATA): Remove cygwin.exp, mcore-elf.exp, diff --git a/lib/remote.exp b/lib/remote.exp index e0d9d18..029d934 100644 --- a/lib/remote.exp +++ b/lib/remote.exp @@ -1122,17 +1122,15 @@ proc standard_wait { dest timeout } { remote_expect $dest $timeout { -re ".+" { append output $expect_out(buffer) - if { [string length $output] > 512000 } { - remote_close $dest - set status 1 - } else { - exp_continue -continue_timer - } + exp_continue -continue_timer } timeout { warning "program timed out." } eof { + # There may be trailing characters in the buffer. + # Append them, too. + append output $expect_out(buffer) if {[board_info $dest exists fileid_origid]} { global board_info |