[Bug testsuite/64983] Incomplete summary when regtesting with dejagnu 1.5.2.

howarthjw at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 29 07:17:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64983

Jack Howarth <howarthjw at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarthjw at gmail dot com

--- Comment #8 from Jack Howarth <howarthjw at gmail dot com> ---
The usage of reset_vars in proc runtest results in the execution of...

    foreach x $test_names {
        set test_counts($x,count) 0
    }

Reverting the commit while effectively retaining that part of the changes
with...

diff -uNr dejagnu-1.5.2.orig/runtest.exp dejagnu-1.5.2/runtest.exp
--- dejagnu-1.5.2.orig/runtest.exp    2015-02-03 21:25:26.000000000 -0500
+++ dejagnu-1.5.2/runtest.exp    2015-03-28 16:48:10.000000000 -0400
@@ -1441,13 +1441,22 @@
 #

 proc runtest { test_file_name } {
+    global test_names test_counts
+    global prms_id
+    global bug_id
     global test_result
     global errcnt
     global errorInfo
     global tool

     clone_output "Running $test_file_name ..."
-    reset_vars
+    set prms_id    0
+    set bug_id    0
+
+    foreach x $test_names {
+    set test_counts($x,count) 0
+    }
+
     set test_result ""

     if {[file exists $test_file_name]} {

...replicates the breakage.



More information about the Gcc-bugs mailing list