https://gcc.gnu.org/g:2c1d119b7ef01db9f54e887bbf6f799c70796f5a

commit r15-11732-g2c1d119b7ef01db9f54e887bbf6f799c70796f5a
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.
    
    (cherry picked from commit b86d9c53ebb3b674771eeac5513a8c173285593c)

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 81d0bebdfe5a..8319c7d64ef6 100644
--- a/gcc/testsuite/g++.dg/modules/modules.exp
+++ b/gcc/testsuite/g++.dg/modules/modules.exp
@@ -351,6 +351,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