From 6a70d89e8ca43c979a3b8053ecc43122d8d23bf5 Mon Sep 17 00:00:00 2001 From: Jan Scheer Date: Wed, 26 May 2021 12:55:53 +0200 Subject: [PATCH] tests/du: replace call to 'ln' with call to 'AtPath::hard_link' --- tests/by-util/test_du.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/by-util/test_du.rs b/tests/by-util/test_du.rs index c72bd02a6..04dbf9f37 100644 --- a/tests/by-util/test_du.rs +++ b/tests/by-util/test_du.rs @@ -129,11 +129,9 @@ fn _du_soft_link(s: &str) { #[test] fn test_du_hard_link() { let scene = TestScenario::new(util_name!()); + let at = &scene.fixtures; - let result_ln = scene.cmd("ln").arg(SUB_FILE).arg(SUB_LINK).run(); - if !result_ln.succeeded() { - scene.ccmd("ln").arg(SUB_FILE).arg(SUB_LINK).succeeds(); - } + at.hard_link(SUB_FILE, SUB_LINK); let result = scene.ucmd().arg(SUB_DIR_LINKS).succeeds();