diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2025-04-19 15:49:34 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2025-04-19 22:34:24 +0000 |
commit | 2753c6f3b86b9532ce2e0c580c59d0413b68e139 (patch) | |
tree | de29d1a34e26a898808272d4cffea80d4467906d | |
parent | ad951b9c2696a62fddf2502e3b68352a81264f7c (diff) | |
download | gcc-2753c6f3b86b9532ce2e0c580c59d0413b68e139.zip gcc-2753c6f3b86b9532ce2e0c580c59d0413b68e139.tar.gz gcc-2753c6f3b86b9532ce2e0c580c59d0413b68e139.tar.bz2 |
Disable parallel testing for 'rust/compile/nr2/compile.exp' [PR119508]
..., using the standard idiom. This '*.exp' file doesn't adhere to the
parallel testing protocol as defined in 'gcc/testsuite/lib/gcc-defs.exp'.
This also restores proper behavior for '*.exp' files executing after (!) this
one, which erroneously caused hundreds or even thousands of individual test
cases get duplicated vs. skipped, randomly, depending on the '-jN' level.
PR testsuite/119508
gcc/testsuite/
* rust/compile/nr2/compile.exp: Disable parallel testing.
(cherry picked from commit 79d2c3089f480738613b7d338d86d8be710f8158)
-rw-r--r-- | gcc/testsuite/rust/compile/nr2/compile.exp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/nr2/compile.exp b/gcc/testsuite/rust/compile/nr2/compile.exp index 4d91dd0..9e15cdd 100644 --- a/gcc/testsuite/rust/compile/nr2/compile.exp +++ b/gcc/testsuite/rust/compile/nr2/compile.exp @@ -19,6 +19,15 @@ # Load support procs. load_lib rust-dg.exp +# These tests don't run runtest_file_p consistently if it +# doesn't return the same values, so disable parallelization +# of this *.exp file. The first parallel runtest to reach +# this will run all the tests serially. +if ![gcc_parallel_test_run_p compile] { + return +} +gcc_parallel_test_enable 0 + # Initialize `dg'. dg-init @@ -136,3 +145,5 @@ namespace eval rust-nr2-ns { # All done. dg-finish + +gcc_parallel_test_enable 1 |