mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: replace run() with succeeds() or fails()
This commit is contained in:
parent
3844a74c38
commit
df4dfea852
39 changed files with 434 additions and 498 deletions
|
@ -126,13 +126,13 @@ fn test_shred_force() {
|
|||
at.set_readonly(file);
|
||||
|
||||
// Try shred -u.
|
||||
scene.ucmd().arg("-u").arg(file).run();
|
||||
scene.ucmd().arg("-u").arg(file).fails();
|
||||
|
||||
// file_a was not deleted because it is readonly.
|
||||
assert!(at.file_exists(file));
|
||||
|
||||
// Try shred -u -f.
|
||||
scene.ucmd().arg("-u").arg("-f").arg(file).run();
|
||||
scene.ucmd().arg("-u").arg("-f").arg(file).succeeds();
|
||||
|
||||
// file_a was deleted.
|
||||
assert!(!at.file_exists(file));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue