more: Update tests/by-util/test_more.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
Ludmuterol 2023-05-24 15:57:55 +02:00 committed by GitHub
parent 53ffd55bdf
commit ccdb76aef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ fn test_more_invalid_file_perms() {
if std::io::stdout().is_terminal() {
let (at, mut ucmd) = at_and_ucmd!();
let permissions = Permissions::from_mode(0o244);
at.make_file("invalid-perms.txt").metadata().unwrap();
at.make_file("invalid-perms.txt");
set_permissions(at.plus("invalid-perms.txt"), permissions).unwrap();
ucmd.arg("invalid-perms.txt").fails();
}