From 8ade047454340bd266e5485654aab7fde17f5b69 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Thu, 26 Oct 2023 21:04:56 +0100 Subject: [PATCH] Error if symlinks not supported in CI --- library/std/src/fs/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");