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.
Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
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]
file delete -force $obj
file delete -force $rsp
file delete -force $src
+
+gcc_parallel_test_enable 1