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

tee: refactor tests for #1982

This commit is contained in:
Jan Scheer 2021-04-05 23:05:07 +02:00
parent cbe07c93c6
commit de757cb025

View file

@ -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]