aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2001-05-08 15:04:39 +0000
committerRob Savoye <rob@welcomehome.org>2001-05-08 15:04:39 +0000
commit7422e6ab359e05c9b350f6fce4ff57afe8dc1489 (patch)
tree0ac5aace6142c037a83c6962b21a271c55ac6a23
parent02aab766e743f7043b3c2ffe7acddf8d445b8c9d (diff)
downloaddejagnu-7422e6ab359e05c9b350f6fce4ff57afe8dc1489.zip
dejagnu-7422e6ab359e05c9b350f6fce4ff57afe8dc1489.tar.gz
dejagnu-7422e6ab359e05c9b350f6fce4ff57afe8dc1489.tar.bz2
* lib/dejagnu.exp: Trim off test state part of the message, so we
don't duplicate it.
-rw-r--r--ChangeLog5
-rwxr-xr-xlib/dejagnu.exp5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c62b6a..319f1d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-08 Rob Savoye <rob@peggyo.welcomehome.org>
+
+ * lib/dejagnu.exp: Trim off test state part of the message, so we
+ don't duplicate it.
+
2001-05-06 Rob Savoye <rob@blackpeter.welcomehome.org>
* debian/rules: Install all the doc formats.
diff --git a/lib/dejagnu.exp b/lib/dejagnu.exp
index d550c5b..c85b54e 100755
--- a/lib/dejagnu.exp
+++ b/lib/dejagnu.exp
@@ -119,30 +119,35 @@ proc host_execute {args} {
}
-re "NOTE:${text}*" {
regsub "\[\n\r\t\]*NOTE: $text\r\n" $expect_out(0,string) "" output
+ set output [string range $output 6 end]
verbose "$output" 2
set timetol 0
exp_continue
}
-re "PASSED:${text}*" {
regsub "\[\n\r\t\]*PASSED: $text\r\n" $expect_out(0,string) "" output
+ set output [string range $output 8 end]
pass "$output"
set timetol 0
exp_continue
}
-re "FAILED:${text}*" {
regsub "\[\n\r\t\]*FAILED: $text\r\n" $expect_out(0,string) "" output
+ set output [string range $output 8 end]
fail "$output"
set timetol 0
exp_continue
}
-re "UNTESTED:${text}*" {
regsub "\[\n\r\t\]*TESTED: $text\r\n" $expect_out(0,string) "" output
+ set output [string range $output 8 end]
untested "$output"
set timetol 0
exp_continue
}
-re "UNRESOLVED:${text}*" {
regsub "\[\n\r\t\]*UNRESOLVED: $text\r\n" $expect_out(0,string) "" output
+ set output [string range $output 8 end]
unresolved "$output"
set timetol 0
exp_continue