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