Skip to content

Commit

Permalink
Auto merge of rust-lang#117248 - ChrisDenton:ci-symlink, r=m-ou-se
Browse files Browse the repository at this point in the history
Error if symlinks are not supported in CI

In CI we want to run as many tests as possible and be alerted if a test isn't run for any reason.
  • Loading branch information
bors committed Dec 1, 2023
2 parents 64d7e0d + 8ade047 commit 9cf18e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/fs/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ macro_rules! error_contains {
// tests most of the time, but at least we do if the user has the right
// permissions.
pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
if cfg!(unix) {
if cfg!(not(windows)) || env::var_os("CI").is_some() {
return true;
}
let link = tmpdir.join("some_hopefully_unique_link_name");
Expand Down

0 comments on commit 9cf18e9

Please sign in to comment.