1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

shred, stat, tail: Remove direct usage of CmdResult fields in test

This commit is contained in:
Gilad Naaman 2021-04-17 15:22:20 +03:00
parent 7c7e64e79c
commit 600bab52ff
3 changed files with 8 additions and 10 deletions

View file

@ -36,9 +36,7 @@ fn test_shred_force() {
at.set_readonly(file);
// Try shred -u.
let result = scene.ucmd().arg("-u").arg(file).run();
println!("stderr = {:?}", result.stderr);
println!("stdout = {:?}", result.stdout);
scene.ucmd().arg("-u").arg(file).run();
// file_a was not deleted because it is readonly.
assert!(at.file_exists(file));