From 97f8361737ce1295627537617108b660e8d35ab2 Mon Sep 17 00:00:00 2001 From: Anirban Halder Date: Thu, 9 May 2024 01:21:35 +0530 Subject: [PATCH] Switched to using at.symlink_file instead of ln in tests --- tests/by-util/test_cp.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index ee226ed27..a8268f3c6 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -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")