Re: Separating stdout and stderr
Ben Elliston <[email protected]>
| Newsgroups | gmane.comp.sysutils.dejagnu.general |
|---|---|
| Message-ID | <[email protected]> |
I found the problem. The sanitiser execution tests produce a lot of output (~20KB on stderr). Somtimes, when EOF is matched in standard_wait, there are unmatched characters left in the expect buffer. These need to be appended to $output. This has probably escaped us until now because execution test output has been very short. I'll do some more testing before checking this in. Cheers, Ben 2016-03-27 Ben Elliston <[email protected]> * 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. 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 _______________________________________________ DejaGnu mailing list [email protected] https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc
(application/pgp-signature, 811 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUBVvac33Y2KIi1WYjUAQi3cQ/5AW24xiS0wpQNEDzJK7URR+betr5TLV7s SRfforhDir+Qj75Y8x2hUJjAyORu3/ierLikZXX6niBJu1cEmYXgWkm87+N5+eLS ZW5l1S6f6J+vyp3TBmamcm71FUNdeI9y9tvBuVFmKu9znjZ1BreRTXa/6R/ZGIJN VblxRJBA7EdB/yGiVosv5udeX4KYFraRgIdHRewtWIoI4O+JGcZMbHC0+nJFldxF rwPRoQsIWePos1xdAj0lWvEymf+18EQpaWCgmFr0ORQAi+WA5Qcwf04t7i8vYbbq /ZwWjLVbY/IWsy6ScBBG6WPzq9Ppg0RhQFVtDjtDMLJdvrJXqgQcbw1iSsJhdiUg A6lZKY0i7w+hha2RIDxL9mWhXEGr0skew2859oI1D9a10P6rQE7EpWqT8eLDPgRv F3Vl2aXE2maYOo57GEHhSPsHNnURMj0BL1EgDShg2Equsv+HTUIoe4mUQy25ci4L JYbOV3qT/Vn5hs31V6AkpPsem9K6FCNLY5irCfpkCJ4O3d/BPrXxEKdmWgyaKvgN BA8POmX/rGk7pXCcdxmXd9XLJMcqBP5kXckxJY2KZNI6yUUFFUdT/eXRTRb8W+d2 ioJvUzg0AIi5mZ8hjfz6oDC7IsA02zxII50eL0uFTjMK/PYEP+hWiO30zuz6axDO NrbTm0D+e3I= =3//4 -----END PGP SIGNATURE-----