PATCH 3/3: fix clone_output

Jacob Bachmeyer <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
It turns out that clone_output was not actually sending errors to the 
error stream.  Oops.  This patch fixes the bug.

----
ChangeLog entry:
	* lib/framework.exp (clone_output): Actually send errors to the
	error stream; bug found while improving testsuite.
---
 lib/framework.exp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/framework.exp b/lib/framework.exp
index f48d3f5..00aa716 100644
--- a/lib/framework.exp
+++ b/lib/framework.exp
@@ -307,7 +307,9 @@ proc clone_output { message } {
 		send_log -- "$message\n"
 	    }
 	}
-	{"ERROR:" "WARNING:" "NOTE:"} {
+	"ERROR:" -
+	"WARNING:" -
+	"NOTE:" {
 	    send_error -- "$message\n"
 	    return $message
 	}
----


-- Jacob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.