Skip to content

[win][arm64] Disable std::fs tests that require symlinks #140759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions library/std/src/fs/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,10 @@ fn recursive_mkdir_empty() {
}

#[test]
#[cfg_attr(
all(windows, target_arch = "aarch64"),
ignore = "SymLinks not enabled on Arm64 Windows runners https://github.com/actions/partner-runner-images/issues/94"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a cute way of embedding a message there

)]
fn recursive_rmdir() {
let tmpdir = tmpdir();
let d1 = tmpdir.join("d1");
Expand All @@ -749,6 +753,10 @@ fn recursive_rmdir() {
}

#[test]
#[cfg_attr(
all(windows, target_arch = "aarch64"),
ignore = "SymLinks not enabled on Arm64 Windows runners https://github.com/actions/partner-runner-images/issues/94"
)]
fn recursive_rmdir_of_symlink() {
// test we do not recursively delete a symlink but only dirs.
let tmpdir = tmpdir();
Expand Down Expand Up @@ -1533,6 +1541,10 @@ fn file_open_not_found() {
}

#[test]
#[cfg_attr(
all(windows, target_arch = "aarch64"),
ignore = "SymLinks not enabled on Arm64 Windows runners https://github.com/actions/partner-runner-images/issues/94"
)]
fn create_dir_all_with_junctions() {
let tmpdir = tmpdir();
let target = tmpdir.join("target");
Expand Down Expand Up @@ -2011,6 +2023,10 @@ fn test_rename_symlink() {

#[test]
#[cfg(windows)]
#[cfg_attr(
all(windows, target_arch = "aarch64"),
ignore = "SymLinks not enabled on Arm64 Windows runners https://github.com/actions/partner-runner-images/issues/94"
)]
fn test_rename_junction() {
let tmpdir = tmpdir();
let original = tmpdir.join("original");
Expand Down
Loading