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 038a08b commit 2a044dbCopy full SHA for 2a044db
1 file changed
tests/by-util/test_cp.rs
@@ -2991,11 +2991,15 @@ fn test_copy_through_dangling_symlink() {
2991
fn test_copy_through_dangling_symlink_posixly_correct() {
2992
let (at, mut ucmd) = at_and_ucmd!();
2993
at.touch("file");
2994
+ at.write("file", "content");
2995
at.symlink_file("nonexistent", "target");
2996
ucmd.arg("file")
2997
.arg("target")
2998
.env("POSIXLY_CORRECT", "1")
2999
.succeeds();
3000
+ assert!(at.file_exists("nonexistent"));
3001
+ let contents = at.read("nonexistent");
3002
+ assert_eq!(contents, "content");
3003
}
3004
3005
#[test]
0 commit comments