about summary refs log tree commit diff
path: root/library/std/src/fs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-01 19:34:40 +0000
committerbors <bors@rust-lang.org>2023-12-01 19:34:40 +0000
commit9cf18e98f82d85fa41141391d54485b8747da46f (patch)
tree686b6d94c8234eeb1014586ccc1bc55ebc25ffe6 /library/std/src/fs
parent64d7e0d0b61c460fbc882ae37c0f236756dd9c39 (diff)
parent8ade047454340bd266e5485654aab7fde17f5b69 (diff)
downloadrust-9cf18e98f82d85fa41141391d54485b8747da46f.tar.gz
rust-9cf18e98f82d85fa41141391d54485b8747da46f.zip
Auto merge of #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.
Diffstat (limited to 'library/std/src/fs')
-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 547a7b7052f..3b6fbf95faf 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");