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

tests/csplit: add directory input file test.

This commit is contained in:
Fuad Ismail 2024-12-12 11:16:57 +07:00 committed by Daniel Hofstetter
parent 757c0b260e
commit 19f990f29a

View file

@ -1448,3 +1448,14 @@ fn create_named_pipe_with_writer(path: &str, data: &str) -> std::process::Child
.spawn()
.unwrap()
}
#[test]
fn test_directory_input_file() {
let (at, mut ucmd) = at_and_ucmd!();
at.mkdir("test_directory");
ucmd.args(&["test_directory", "1"])
.fails()
.code_is(1)
.stderr_only("csplit: read error: Is a directory\n");
}