1
Fork 0
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:
Rayhan Faizel 2023-08-10 08:41:19 +05:30
parent e3ea6144cb
commit 4143859266

View file

@ -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,