mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests/stat: Test case for using - and -f together
This commit is contained in:
parent
e3ea6144cb
commit
4143859266
1 changed files with 13 additions and 0 deletions
|
@ -304,6 +304,19 @@ fn test_stdin_pipe_fifo2() {
|
||||||
.succeeded();
|
.succeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[cfg(all(unix, not(target_os = "android")))]
|
||||||
|
fn test_stdin_with_fs_option() {
|
||||||
|
// $ stat -f -
|
||||||
|
new_ucmd!()
|
||||||
|
.arg("-f")
|
||||||
|
.arg("-")
|
||||||
|
.set_stdin(std::process::Stdio::null())
|
||||||
|
.fails()
|
||||||
|
.code_is(1)
|
||||||
|
.stderr_contains("using '-' to denote standard input does not work in file system mode");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
unix,
|
unix,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue