Skip to content

Commit f8a864b

Browse files
committed
test_cp: On MacOS, ignore tests that use /dev/fd/0
For unclear reason, this is a source of test flakiness (#8453).
1 parent d535824 commit f8a864b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/by-util/test_cp.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6322,6 +6322,7 @@ fn test_cp_archive_preserves_directory_permissions() {
63226322

63236323
#[test]
63246324
#[cfg(unix)]
6325+
#[cfg_attr(target_os = "macos", ignore = "Flaky on MacOS, see #8453")]
63256326
fn test_cp_from_stdin() {
63266327
let (at, mut ucmd) = at_and_ucmd!();
63276328
let target = "target";
@@ -6389,6 +6390,7 @@ fn test_cp_update_none_interactive_prompt_no() {
63896390

63906391
/// only unix has `/dev/fd/0`
63916392
#[cfg(unix)]
6393+
#[cfg_attr(target_os = "macos", ignore = "Flaky on MacOS, see #8453")]
63926394
#[test]
63936395
fn test_cp_from_stream() {
63946396
let target = "target";
@@ -6415,6 +6417,7 @@ fn test_cp_from_stream() {
64156417

64166418
/// only unix has `/dev/fd/0`
64176419
#[cfg(unix)]
6420+
#[cfg_attr(target_os = "macos", ignore = "Flaky on MacOS, see #8453")]
64186421
#[test]
64196422
fn test_cp_from_stream_permission() {
64206423
let target = "target";

0 commit comments

Comments
 (0)