https://gcc.gnu.org/g:663074ab87a5b51139d81ac8ff6fb449359f352f
commit r14-13022-g663074ab87a5b51139d81ac8ff6fb449359f352f 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 3e8df9b89309..8f443da9efd5 100644 --- a/gcc/testsuite/g++.dg/modules/modules.exp +++ b/gcc/testsuite/g++.dg/modules/modules.exp @@ -337,6 +337,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" } {
