Skip to content

Commit 9cf18e9

Browse files
committed
Auto merge of rust-lang#117248 - ChrisDenton:ci-symlink, r=m-ou-se
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.
2 parents 64d7e0d + 8ade047 commit 9cf18e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/fs/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ macro_rules! error_contains {
7474
// tests most of the time, but at least we do if the user has the right
7575
// permissions.
7676
pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
77-
if cfg!(unix) {
77+
if cfg!(not(windows)) || env::var_os("CI").is_some() {
7878
return true;
7979
}
8080
let link = tmpdir.join("some_hopefully_unique_link_name");

0 commit comments

Comments
 (0)