Skip to content

Commit

Permalink
tests/cp: remove FreeBSD guard in FIFO copy test
Browse files Browse the repository at this point in the history
Copying FIFOs now work under FreeBSD and other UNIX platforms.
  • Loading branch information
DaringCuteSeal committed Jan 3, 2025
1 parent ff9da2a commit 7f0d2be
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7f0d2be

Please sign in to comment.