Skip to content

Commit

Permalink
compiletest: stamp minicore.rs to rerun tests on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Oct 31, 2024
1 parent a737f75 commit 59cb59d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tools/compiletest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 59cb59d

Please sign in to comment.