mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
tests/csplit: handle directory input file test for Windows separately
This commit is contained in:
parent
51dce9c5f8
commit
c8bc5d2455
1 changed files with 6 additions and 0 deletions
|
@ -1454,8 +1454,14 @@ fn test_directory_input_file() {
|
|||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
at.mkdir("test_directory");
|
||||
|
||||
#[cfg(unix)]
|
||||
ucmd.args(&["test_directory", "1"])
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_only("csplit: read error: Is a directory\n");
|
||||
#[cfg(windows)]
|
||||
ucmd.args(&["test_directory", "1"])
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_only("csplit: cannot open 'test_directory' for reading: Permission denied\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue