mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tee: refactor tests for #1982
This commit is contained in:
parent
cbe07c93c6
commit
de757cb025
1 changed files with 4 additions and 5 deletions
|
@ -68,15 +68,14 @@ fn test_tee_no_more_writeable_1() {
|
|||
.collect::<String>();
|
||||
let file_out = "tee_file_out";
|
||||
|
||||
let result = ucmd
|
||||
.arg("/dev/full")
|
||||
ucmd.arg("/dev/full")
|
||||
.arg(file_out)
|
||||
.pipe_in(&content[..])
|
||||
.fails();
|
||||
.fails()
|
||||
.stdout_contains(&content)
|
||||
.stderr_contains(&"No space left on device");
|
||||
|
||||
assert_eq!(at.read(file_out), content);
|
||||
assert!(result.stdout.contains(&content));
|
||||
assert!(result.stderr.contains("No space left on device"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue