mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests/csplit: add directory input file test.
This commit is contained in:
committed by
Daniel Hofstetter
parent
757c0b260e
commit
19f990f29a
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user