aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2022-11-26 22:05:45 -0600
committerJacob Bachmeyer <jcb@gnu.org>2022-11-26 22:05:45 -0600
commit999b7c0475d5f31c9fc29be58a97078bf6f0f2ec (patch)
tree35b3f9c43abfbda98f898ff23e189fa56a4015bb /lib
parentd747eee6ec891425846ea9c21819d9c2ea48ed34 (diff)
downloaddejagnu-999b7c0475d5f31c9fc29be58a97078bf6f0f2ec.zip
dejagnu-999b7c0475d5f31c9fc29be58a97078bf6f0f2ec.tar.gz
dejagnu-999b7c0475d5f31c9fc29be58a97078bf6f0f2ec.tar.bz2
Add explicit end-of-test marker to DejaGnu unit test protocol
Diffstat (limited to 'lib')
-rw-r--r--lib/dejagnu.exp13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/dejagnu.exp b/lib/dejagnu.exp
index 3fdca76..2489cc1 100644
--- a/lib/dejagnu.exp
+++ b/lib/dejagnu.exp
@@ -140,18 +140,16 @@ proc host_execute {args} {
XFAILED { xfail $output }
UNTESTED { untested $output }
UNRESOLVED { unresolved $output }
+ END {
+ expect -re {.+} { exp_continue }
+ verbose "All done" 2
+ }
default {
unresolved "unknown unit test token $expect_out(1,string)"
}
}
set timetol 0
- exp_continue
- }
- -re {^Totals} {
- # Flush the stream to allow the child process to finish writing
- # logs or other information, instead of sending SIGPIPE.
- expect -re {.+} { exp_continue }
- verbose "All done" 2
+ if { $expect_out(1,string) ne "END" } { exp_continue }
}
-re {^[^\r\n]*([0-9][0-9]:..:..:[^\n]*)\n} {
# No one seems to know why this pattern is here or what it is
@@ -170,6 +168,7 @@ proc host_execute {args} {
$executable $arguments"
}
eof {
+ warning "Test case did not emit an end marker"
}
timeout {
warning "Timed out executing test case"