1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Switched to using at.symlink_file instead of ln in tests

This commit is contained in:
Anirban Halder 2024-05-09 01:21:35 +05:30 committed by Ben Wiederhake
parent 88d9d46abc
commit 97f8361737

View file

@ -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")