about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2023-03-30 21:07:00 +0900
committerGitHub <noreply@github.com>2023-03-30 21:07:00 +0900
commit2981d7781cf14041278a028c40fb790a14f1a3e8 (patch)
tree33a349b2c2f3088e91b65ff94e7126b91af34674 /compiler/rustc_codegen_gcc
parentd6f27401f12f02876aa6fe53139b030033f37e5e (diff)
parent1692d0c142985a01a2770da8654912dc40342412 (diff)
downloadrust-2981d7781cf14041278a028c40fb790a14f1a3e8.tar.gz
rust-2981d7781cf14041278a028c40fb790a14f1a3e8.zip
Rollup merge of #109509 - ehuss:overlapping-tests, r=Mark-Simulacrum
compiletest: Don't allow tests with overlapping prefix names

Some tests will delete their output directory before starting. The output directory is based on the test names. If one test is the prefix of another test, then when that test starts, it could try to delete the output directory of the other test with the longer path, or otherwise clash with it while the two tests are trying to create/delete/modify the same directory.

In practice, this manifested as a random error on macOS where two tests were trying to create/delete/create `rustdoc/primitive` and `rustdoc/primitive/no_std`, which resulted in an EINVAL (InvalidInput) error.

This renames some of the offending tests, adds `compiletest-ignore-dir` to prevent compiletest from processing some files, and adds a check to prevent this from happening in the future.

Fixes #109397
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions