mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
test_stat: Disable test_stdin_pipe_fifo1/2 on Mac OS X
It's not totally clear why they sometimes work, sometimes fail, but it does appear that running `stat` on `/dev/stdin` is perhaps not the most reliable approach. A likely more solid approach is described in #7583.
This commit is contained in:
@@ -331,10 +331,16 @@ fn test_pipe_fifo() {
|
||||
.stdout_contains("File: FIFO");
|
||||
}
|
||||
|
||||
// TODO(#7583): Re-enable on Mac OS X (and possibly other Unix platforms)
|
||||
#[test]
|
||||
#[cfg(all(
|
||||
unix,
|
||||
not(any(target_os = "android", target_os = "freebsd", target_os = "openbsd"))
|
||||
not(any(
|
||||
target_os = "android",
|
||||
target_os = "freebsd",
|
||||
target_os = "openbsd",
|
||||
target_os = "macos"
|
||||
))
|
||||
))]
|
||||
fn test_stdin_pipe_fifo1() {
|
||||
// $ echo | stat -
|
||||
@@ -356,8 +362,9 @@ fn test_stdin_pipe_fifo1() {
|
||||
.stdout_contains("File: -");
|
||||
}
|
||||
|
||||
// TODO(#7583): Re-enable on Mac OS X (and maybe Android)
|
||||
#[test]
|
||||
#[cfg(all(unix, not(target_os = "android")))]
|
||||
#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))]
|
||||
fn test_stdin_pipe_fifo2() {
|
||||
// $ stat -
|
||||
// File: -
|
||||
|
||||
Reference in New Issue
Block a user