about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2023-10-26 21:04:56 +0100
committerChris Denton <chris@chrisdenton.dev>2023-10-26 21:08:11 +0100
commit8ade047454340bd266e5485654aab7fde17f5b69 (patch)
tree15f3fe3f501fa0e5ce6fb8f20106eeb6cf6b6cda
parent8396efecf7d30ca9f7edcf76aba2ea388300f6ab (diff)
downloadrust-8ade047454340bd266e5485654aab7fde17f5b69.tar.gz
rust-8ade047454340bd266e5485654aab7fde17f5b69.zip
Error if symlinks not supported in CI
-rw-r--r--library/std/src/fs/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/fs/tests.rs b/library/std/src/fs/tests.rs
index 736b495343e..6185c88ea58 100644
--- a/library/std/src/fs/tests.rs
+++ b/library/std/src/fs/tests.rs
@@ -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");