mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tee: fix < . message and strip errno
This commit is contained in:
@@ -16,6 +16,15 @@ use std::time::Duration;
|
||||
|
||||
// spell-checker:ignore nopipe
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn test_error_stdin_directory() {
|
||||
new_ucmd!()
|
||||
.set_stdin(std::fs::File::open(".").unwrap())
|
||||
.fails_with_code(1)
|
||||
.stderr_is("tee: read error: Is a directory\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails_with_code(1);
|
||||
|
||||
Reference in New Issue
Block a user