diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2023-10-26 21:04:56 +0100 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2023-10-26 21:08:11 +0100 |
| commit | 8ade047454340bd266e5485654aab7fde17f5b69 (patch) | |
| tree | 15f3fe3f501fa0e5ce6fb8f20106eeb6cf6b6cda | |
| parent | 8396efecf7d30ca9f7edcf76aba2ea388300f6ab (diff) | |
| download | rust-8ade047454340bd266e5485654aab7fde17f5b69.tar.gz rust-8ade047454340bd266e5485654aab7fde17f5b69.zip | |
Error if symlinks not supported in CI
| -rw-r--r-- | library/std/src/fs/tests.rs | 2 |
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"); |
