Skip to content

Commit 98e68f4

Browse files
committed
compiletest: stamp minicore.rs to rerun tests on changes
1 parent 636d723 commit 98e68f4

File tree

1 file changed

+6
-0
lines changed
  • src/tools/compiletest/src

1 file changed

+6
-0
lines changed

src/tools/compiletest/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,12 @@ fn files_related_to_test(
890890
related.push(path);
891891
}
892892

893+
// `minicore.rs` test auxiliary: we need to make sure tests get rerun if this changes.
894+
//
895+
// FIXME(jieyouxu): untangle these paths, we should provide both a path to root `tests/` or
896+
// `tests/auxiliary/` and the test suite in question. `src_base` is also a terrible name.
897+
related.push(config.src_base.parent().unwrap().join("auxiliary").join("minicore.rs"));
898+
893899
related
894900
}
895901

0 commit comments

Comments
 (0)