On Fri, Jul 10, 2026 at 9:52 AM <[email protected]> wrote: > > From: Sunil Dora <[email protected]> > > pr111527.exp does not call runtest_file_p, so with parallel make > check more than one runtest instance can run it and the number of > duplicate test names varies from run to run. Take the > gcc_parallel_test_run_p lock like linkage.exp does so the tests > run only once. > > gcc/testsuite/ChangeLog: > > PR driver/111527 > * gcc.misc-tests/pr111527.exp: Serialize with > gcc_parallel_test_run_p to avoid duplicate test names.
This makes sense. Ok. > > Signed-off-by: Sunil Dora <[email protected]> > --- > gcc/testsuite/gcc.misc-tests/pr111527.exp | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/gcc/testsuite/gcc.misc-tests/pr111527.exp > b/gcc/testsuite/gcc.misc-tests/pr111527.exp > index 0e71519483f..586bdb43ebf 100644 > --- a/gcc/testsuite/gcc.misc-tests/pr111527.exp > +++ b/gcc/testsuite/gcc.misc-tests/pr111527.exp > @@ -24,6 +24,14 @@ if { [is_remote host] } { > return > } > > +# This file doesn't use runtest_file_p, so disable parallelization > +# of this *.exp file. The first parallel runtest to reach this > +# will run the tests. > +if { ![gcc_parallel_test_run_p pr111527] } { > + return > +} > +gcc_parallel_test_enable 0 > + > global GCC_UNDER_TEST > if { ![info exists GCC_UNDER_TEST] } { > set GCC_UNDER_TEST [find_gcc] > @@ -76,3 +84,5 @@ if { [regexp {COLLECT_GCC_OPTIONS=@[^[:space:]]+} $out] } { > file delete -force $obj > file delete -force $rsp > file delete -force $src > + > +gcc_parallel_test_enable 1 > -- > 2.43.0 >
