We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e29c8 commit 3ba588dCopy full SHA for 3ba588d
tests/run-pass/fs.rs
@@ -142,7 +142,10 @@ fn test_symlink() {
142
let symlink_path = prepare("miri_test_fs_symlink.txt");
143
144
// Creating a symbolic link should succeed.
145
+ #[cfg(unix)]
146
std::os::unix::fs::symlink(&path, &symlink_path).unwrap();
147
+ #[cfg(windows)]
148
+ std::os::windows::fs::symlink_file(&path, &symlink_path).unwrap();
149
// Test that the symbolic link has the same contents as the file.
150
let mut symlink_file = File::open(&symlink_path).unwrap();
151
let mut contents = Vec::new();
0 commit comments