[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH 1/3: Fix handling of blank lines in testsuite/runtest.libs/libs.ex
From: |
Jacob Bachmeyer |
Subject: |
PATCH 1/3: Fix handling of blank lines in testsuite/runtest.libs/libs.exp |
Date: |
Wed, 09 Jan 2019 22:14:13 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 |
Previously, Expect could hang if the child process running tests emitted
a blank line, or if an end-of-line sequence was split (this latter
circumstance is very rare and I have not directly observed it -- only an
unreproducible hang, once, that I now believe to have been caused by
this bug), causing all subsequent output to pile up in Expect's buffer
unrecognized.
----
ChangeLog entry:
* testsuite/runtest.libs/libs.exp (process_test): Handle blank
lines from child process correctly.
---
testsuite/runtest.libs/libs.exp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/testsuite/runtest.libs/libs.exp b/testsuite/runtest.libs/libs.exp
index 80b46ab..8521ead 100644
--- a/testsuite/runtest.libs/libs.exp
+++ b/testsuite/runtest.libs/libs.exp
@@ -44,6 +44,7 @@ proc process_test { test } {
"no such file or directory" {
perror "$test wouldn't run" 0
}
+ -re {^[\r\n]+} { exp_continue }
-re "^\[^\r\n\]*NOTSUPPORTED: $text\[\r\n\]*" {
unsupported "[lrange $expect_out(0,string) 1 end]"
exp_continue
----
-- Jacob
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- PATCH 1/3: Fix handling of blank lines in testsuite/runtest.libs/libs.exp,
Jacob Bachmeyer <=