diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-22 18:46:32 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-31 18:20:11 +0800 |
| commit | 59cb59d74d51c3b210d81880f07169d3efeea2a6 (patch) | |
| tree | 219f2d6e1f6823d855af6db5a9560841ce8f8567 | |
| parent | a737f75a04317b3762db8e93c229d704a48e2d62 (diff) | |
| download | rust-59cb59d74d51c3b210d81880f07169d3efeea2a6.tar.gz rust-59cb59d74d51c3b210d81880f07169d3efeea2a6.zip | |
compiletest: stamp `minicore.rs` to rerun tests on changes
| -rw-r--r-- | src/tools/compiletest/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/lib.rs b/src/tools/compiletest/src/lib.rs index b3ecc0b5073..5c06a39c477 100644 --- a/src/tools/compiletest/src/lib.rs +++ b/src/tools/compiletest/src/lib.rs @@ -890,6 +890,12 @@ fn files_related_to_test( related.push(path); } + // `minicore.rs` test auxiliary: we need to make sure tests get rerun if this changes. + // + // FIXME(jieyouxu): untangle these paths, we should provide both a path to root `tests/` or + // `tests/auxiliary/` and the test suite in question. `src_base` is also a terrible name. + related.push(config.src_base.parent().unwrap().join("auxiliary").join("minicore.rs")); + related } |
