There seems to be an old bug originally reported in the Red Hat
bug tracker [1] still present in the dejagnu 1.6.3 sources.
Steps to Reproduce:


echo 'perror foo' >a.exp; echo 'pass bar' >b.exp; runtest a.exp b.exp; cat 
testrun.sum

Actual results:
...
Running target unix
Running ./a.exp ...
ERROR: foo
Running ./b.exp ...
UNRESOLVED: bar

                ===  Summary ===
...

Expected results:
...
Running target unix
Running ./a.exp ...
ERROR: foo
Running ./b.exp ...
PASS: bar

                ===  Summary ===
...


Patch attached.  Please consider fixing.

Thanks,
Martin



-------
[1] https://bugzilla.redhat.com/show_bug.cgi?id=460153

diff --git a/runtest.exp b/runtest.exp
index 4e4eb15..2a81830 100644
--- a/runtest.exp
+++ b/runtest.exp
@@ -1601,8 +1601,7 @@ proc runtest { test_file_name } {
     global testdir
 
     clone_output "Running $test_file_name ..."
-    set prms_id        0
-    set bug_id 0
+    reset_vars
     set test_result ""
 
     # set testdir so testsuite file -test has a starting point
_______________________________________________
Bug-dejagnu mailing list
Bug-dejagnu@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-dejagnu

Reply via email to