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

tests: remove status_code, which is the same as code_is

This commit is contained in:
Terts Diepraam 2023-01-01 15:33:02 +01:00
parent 267a22e12c
commit 44ea43f058
8 changed files with 67 additions and 106 deletions

View file

@ -2277,7 +2277,7 @@ fn test_copy_dir_preserve_permissions_inaccessible_file() {
// V V V V
ucmd.args(&["-p", "-R", "d1", "d2"])
.fails()
.status_code(1)
.code_is(1)
.stderr_only("cp: cannot open 'd1/f' for reading: Permission denied");
assert!(at.dir_exists("d2"));
assert!(!at.file_exists("d2/f"));