Skip to content

Standard library tests about symlinks fail on Windows 10 #156558

@AngelicosPhosphoros

Description

@AngelicosPhosphoros

Summary

Tests fs::tests::test_fs_set_times_follows_symlink and fs::tests::test_fs_set_times_nofollow fail with the error "A required privilege is not held by the client.".

Command used

python x.py test library/std --stage 1

Expected behaviour

All tests should pass.

Actual behaviour

Fails with message:

failures:

---- fs::tests::test_fs_set_times_follows_symlink stdout ----

thread 'fs::tests::test_fs_set_times_follows_symlink' (15700) panicked at library\std\src\fs\tests.rs:2351:58:
called `Result::unwrap()` on an `Err` value: Os { code: 1314, kind: Uncategorized, message: "A required privilege is not held by the client." }
---- fs::tests::test_fs_set_times_follows_symlink stdout end ----
---- fs::tests::test_fs_set_times_nofollow stdout ----

thread 'fs::tests::test_fs_set_times_nofollow' (6504) panicked at library\std\src\fs\tests.rs:2448:58:
called `Result::unwrap()` on an `Err` value: Os { code: 1314, kind: Uncategorized, message: "A required privilege is not held by the client." }
---- fs::tests::test_fs_set_times_nofollow stdout end ----

failures:
    fs::tests::test_fs_set_times_follows_symlink
    fs::tests::test_fs_set_times_nofollow

test result: FAILED. 513 passed; 2 failed; 5 ignored; 0 measured; 0 filtered out; finished in 6.11s

Bootstrap configuration (bootstrap.toml)

# See bootstrap.example.toml for documentation of available options
#
profile = "library"  # Includes one of the default files in src/bootstrap/defaults
change-id = 154587

Operating system

Windows 10 Pro 22H2 Build 19045.6466

HEAD

800892799d7666fe1dc17abd862100a6cf273718

Metadata

Metadata

Assignees

Labels

A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.O-windowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions