mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: ignore failing tests for FreeBSD (#3778)
This commit is contained in:
parent
fc14c6e7a9
commit
391709c911
7 changed files with 42 additions and 14 deletions
|
@ -9,7 +9,7 @@ use std::os::unix::fs;
|
|||
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::fs::symlink as symlink_file;
|
||||
#[cfg(unix)]
|
||||
#[cfg(all(unix, not(target_os = "freebsd")))]
|
||||
use std::os::unix::fs::MetadataExt;
|
||||
#[cfg(all(unix, not(target_os = "freebsd")))]
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
|
@ -22,7 +22,9 @@ use filetime::FileTime;
|
|||
use rlimit::Resource;
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
use std::fs as std_fs;
|
||||
#[cfg(not(target_os = "freebsd"))]
|
||||
use std::thread::sleep;
|
||||
#[cfg(not(target_os = "freebsd"))]
|
||||
use std::time::Duration;
|
||||
use uucore::display::Quotable;
|
||||
|
||||
|
@ -1581,6 +1583,7 @@ fn test_copy_dir_symlink() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(not(target_os = "freebsd"))] // FIXME: fix this test for FreeBSD
|
||||
fn test_copy_dir_with_symlinks() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
at.mkdir("dir");
|
||||
|
@ -1725,6 +1728,7 @@ fn test_copy_through_dangling_symlink_no_dereference() {
|
|||
}
|
||||
|
||||
/// Test for copying a dangling symbolic link and its permissions.
|
||||
#[cfg(not(target_os = "freebsd"))] // FIXME: fix this test for FreeBSD
|
||||
#[test]
|
||||
fn test_copy_through_dangling_symlink_no_dereference_permissions() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue