Rollup merge of #140759 - dpaoliello:symlink, r=workingjubilee

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

While trying to get the aarch64-msvc build working correctly (#140136), various tests in `std::fs` were failing as the Arm64 Windows runner image we are using does not have Developer Mode enabled, thus it cannot create symlinks.

I've [filed a request to get Developer Mode enabled](https://github.com/actions/partner-runner-images/issues/94), but in the meantime I've disabled the relevant tests on Arm64 Windows.
This commit is contained in:
Matthias Krüger
2025-05-08 13:55:46 +02:00
committed by GitHub

View File

@@ -730,6 +730,10 @@ fn recursive_mkdir_empty() {
} }
#[test] #[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() { fn recursive_rmdir() {
let tmpdir = tmpdir(); let tmpdir = tmpdir();
let d1 = tmpdir.join("d1"); let d1 = tmpdir.join("d1");
@@ -749,6 +753,10 @@ fn recursive_rmdir() {
} }
#[test] #[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() { fn recursive_rmdir_of_symlink() {
// test we do not recursively delete a symlink but only dirs. // test we do not recursively delete a symlink but only dirs.
let tmpdir = tmpdir(); let tmpdir = tmpdir();
@@ -1533,6 +1541,10 @@ fn file_open_not_found() {
} }
#[test] #[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() { fn create_dir_all_with_junctions() {
let tmpdir = tmpdir(); let tmpdir = tmpdir();
let target = tmpdir.join("target"); let target = tmpdir.join("target");
@@ -2011,6 +2023,10 @@ fn test_rename_symlink() {
#[test] #[test]
#[cfg(windows)] #[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() { fn test_rename_junction() {
let tmpdir = tmpdir(); let tmpdir = tmpdir();
let original = tmpdir.join("original"); let original = tmpdir.join("original");