1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tests/cp: remove FreeBSD guard in FIFO copy test

Copying FIFOs now work under FreeBSD and other UNIX platforms.
This commit is contained in:
Daringcuteseal 2025-01-03 19:08:14 +07:00
parent 77fadc6897
commit b75d0f9446
No known key found for this signature in database
GPG key ID: 173F4A541C0E39D7

View file

@ -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. /// 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] #[test]
fn test_copy_contents_fifo() { 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 scenario = TestScenario::new(util_name!());
let at = &scenario.fixtures; let at = &scenario.fixtures;