From 7f0d2bebaf6b51331197aad3f4034b64665a89f5 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 7a0889b0fa6..5c9e8d5af5e 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -3437,15 +3437,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;