Skip to content

Commit b75d0f9

Browse files
tests/cp: remove FreeBSD guard in FIFO copy test
Copying FIFOs now work under FreeBSD and other UNIX platforms.
1 parent 77fadc6 commit b75d0f9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/by-util/test_cp.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,15 +3471,9 @@ fn test_same_file_force_backup() {
34713471
}
34723472

34733473
/// Test for copying the contents of a FIFO as opposed to the FIFO object itself.
3474-
#[cfg(all(unix, not(target_os = "freebsd"), not(target_os = "openbsd")))]
3474+
#[cfg(unix)]
34753475
#[test]
34763476
fn test_copy_contents_fifo() {
3477-
// TODO this test should work on FreeBSD, but the command was
3478-
// causing an error:
3479-
//
3480-
// cp: 'fifo' -> 'outfile': the source path is neither a regular file nor a symlink to a regular file
3481-
//
3482-
// the underlying `std::fs:copy` doesn't support copying fifo on freeBSD
34833477
let scenario = TestScenario::new(util_name!());
34843478
let at = &scenario.fixtures;
34853479

0 commit comments

Comments
 (0)