From b75d0f944617a021565faa2ef8b81dda7960fad7 Mon Sep 17 00:00:00 2001 From: Daringcuteseal Date: Fri, 3 Jan 2025 19:08:14 +0700 Subject: [PATCH] tests/cp: remove FreeBSD guard in FIFO copy test Copying FIFOs now work under FreeBSD and other UNIX platforms. --- tests/by-util/test_cp.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index 2132b9363..9c85f89a3 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -3471,15 +3471,9 @@ fn test_same_file_force_backup() { } /// Test for copying the contents of a FIFO as opposed to the FIFO object itself. -#[cfg(all(unix, not(target_os = "freebsd"), not(target_os = "openbsd")))] +#[cfg(unix)] #[test] fn test_copy_contents_fifo() { - // TODO this test should work on FreeBSD, but the command was - // causing an error: - // - // cp: 'fifo' -> 'outfile': the source path is neither a regular file nor a symlink to a regular file - // - // the underlying `std::fs:copy` doesn't support copying fifo on freeBSD let scenario = TestScenario::new(util_name!()); let at = &scenario.fixtures;