diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index d3cee58adc..1ea226cd4f 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -3781,7 +3781,7 @@ fn test_acl_preserve() { // calling the command directly. xattr requires some dev packages to be installed // and it adds a complex dependency just for a test match Command::new("setfacl") - .args(["-m", "group::rwx", &path1]) + .args(["-m", "group::rwx", path1]) .status() .map(|status| status.code()) { diff --git a/tests/by-util/test_date.rs b/tests/by-util/test_date.rs index a65f02fa4c..def3fa8af0 100644 --- a/tests/by-util/test_date.rs +++ b/tests/by-util/test_date.rs @@ -294,6 +294,7 @@ fn test_date_for_no_permission_file() { use std::os::unix::fs::PermissionsExt; let file = std::fs::OpenOptions::new() .create(true) + .truncate(true) .write(true) .open(at.plus(FILE)) .unwrap(); diff --git a/tests/by-util/test_mv.rs b/tests/by-util/test_mv.rs index dd05ffbcd0..a53d7277bd 100644 --- a/tests/by-util/test_mv.rs +++ b/tests/by-util/test_mv.rs @@ -1590,7 +1590,7 @@ fn test_acl() { // calling the command directly. xattr requires some dev packages to be installed // and it adds a complex dependency just for a test match Command::new("setfacl") - .args(["-m", "group::rwx", &path1]) + .args(["-m", "group::rwx", path1]) .status() .map(|status| status.code()) {