mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Switched to using at.symlink_file instead of ln in tests
This commit is contained in:
parent
88d9d46abc
commit
97f8361737
1 changed files with 2 additions and 11 deletions
|
@ -2670,12 +2670,7 @@ fn test_cp_symlink_overwrite_detection() {
|
|||
at.write("README", "file1");
|
||||
at.write("good/README", "file2");
|
||||
|
||||
ts.ccmd("ln")
|
||||
.arg("-s")
|
||||
.arg("foo")
|
||||
.arg("tmp/README")
|
||||
.succeeds();
|
||||
|
||||
at.symlink_file("tmp/foo", "tmp/README");
|
||||
at.touch("tmp/foo");
|
||||
|
||||
ts.ucmd()
|
||||
|
@ -2707,11 +2702,7 @@ fn test_cp_dangling_symlink_inside_directory() {
|
|||
at.write("README", "file1");
|
||||
at.write("good/README", "file2");
|
||||
|
||||
ts.ccmd("ln")
|
||||
.arg("-s")
|
||||
.arg("foo")
|
||||
.arg("tmp/README")
|
||||
.succeeds();
|
||||
at.symlink_file("foo", "tmp/README");
|
||||
|
||||
ts.ucmd()
|
||||
.arg("README")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue