https://gcc.gnu.org/g:b86d9c53ebb3b674771eeac5513a8c173285593c

commit r17-5818-gb86d9c53ebb3b674771eeac5513a8c173285593c
Author: Christophe Lyon <[email protected]>
Date:   Fri Oct 23 13:07:00 2026 +0000

    testsuite: Reset module_do for each ungrouped modules test
    
    The ungrouped modules test loop does not reset module_do between
    tests.  If a previous test calls unsupported, module_do can remain
    set to {"compile" "N"}, causing the CMI checks for subsequent
    tests to be skipped.
    
    Reset module_do at the beginning of each iteration, as is already
    done for grouped modules tests.
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/modules/modules.exp: Reset module_do between ungrouped
            tests.

Diff:
---
 gcc/testsuite/g++.dg/modules/modules.exp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/g++.dg/modules/modules.exp 
b/gcc/testsuite/g++.dg/modules/modules.exp
index 3afbcb39e104..a34c76a80514 100644
--- a/gcc/testsuite/g++.dg/modules/modules.exp
+++ b/gcc/testsuite/g++.dg/modules/modules.exp
@@ -363,6 +363,7 @@ foreach test [prune [lsort [find $srcdir/$subdir {*.[CH]}]] 
\
        foreach std $std_list {
            global module_cmis
            set module_cmis {}
+           set module_do {"compile" "P"}
            verbose "Testing $nshort $std" 1
            dg-test $test "$std" $DEFAULT_MODFLAGS
            if { [lindex $module_do 1] == "N" } {

Reply via email to