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
|
@ -487,8 +487,7 @@ fn test_chmod_symlink_non_existing_file() {
|
|||
.arg("-v")
|
||||
.arg("-f")
|
||||
.arg(test_symlink)
|
||||
.run()
|
||||
.code_is(1)
|
||||
.fails_with_code(1)
|
||||
.no_stderr()
|
||||
.stdout_contains(expected_stdout);
|
||||
|
||||
|
@ -498,8 +497,7 @@ fn test_chmod_symlink_non_existing_file() {
|
|||
.ucmd()
|
||||
.arg("755")
|
||||
.arg(test_symlink)
|
||||
.run()
|
||||
.code_is(1)
|
||||
.fails_with_code(1)
|
||||
.no_stdout()
|
||||
.stderr_contains(expected_stderr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue