mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00: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:
parent
903fa6ae88
commit
ae743a976d
1 changed files with 9 additions and 2 deletions
|
@ -331,10 +331,16 @@ fn test_pipe_fifo() {
|
||||||
.stdout_contains("File: FIFO");
|
.stdout_contains("File: FIFO");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(#7583): Re-enable on Mac OS X (and possibly other Unix platforms)
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
unix,
|
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() {
|
fn test_stdin_pipe_fifo1() {
|
||||||
// $ echo | stat -
|
// $ echo | stat -
|
||||||
|
@ -356,8 +362,9 @@ fn test_stdin_pipe_fifo1() {
|
||||||
.stdout_contains("File: -");
|
.stdout_contains("File: -");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(#7583): Re-enable on Mac OS X (and maybe Android)
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(all(unix, not(target_os = "android")))]
|
#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))]
|
||||||
fn test_stdin_pipe_fifo2() {
|
fn test_stdin_pipe_fifo2() {
|
||||||
// $ stat -
|
// $ stat -
|
||||||
// File: -
|
// File: -
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue