mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
test_cp: ignore failing tests for FreeBSD
This commit is contained in:
parent
3d51291685
commit
d748e3900b
1 changed files with 9 additions and 3 deletions
|
@ -896,7 +896,7 @@ fn test_cp_preserve_no_args() {
|
||||||
.arg("--preserve")
|
.arg("--preserve")
|
||||||
.succeeds();
|
.succeeds();
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(all(unix, not(target_os = "freebsd")))]
|
||||||
{
|
{
|
||||||
// Assert that the mode, ownership, and timestamps are preserved
|
// Assert that the mode, ownership, and timestamps are preserved
|
||||||
// NOTICE: the ownership is not modified on the src file, because that requires root permissions
|
// NOTICE: the ownership is not modified on the src file, because that requires root permissions
|
||||||
|
@ -1834,7 +1834,7 @@ fn test_copy_through_dangling_symlink_no_dereference_permissions() {
|
||||||
assert!(at.symlink_exists("d2"), "symlink wasn't created");
|
assert!(at.symlink_exists("d2"), "symlink wasn't created");
|
||||||
|
|
||||||
// `-p` means `--preserve=mode,ownership,timestamps`
|
// `-p` means `--preserve=mode,ownership,timestamps`
|
||||||
#[cfg(unix)]
|
#[cfg(all(unix, not(target_os = "freebsd")))]
|
||||||
{
|
{
|
||||||
let metadata1 = at.symlink_metadata("dangle");
|
let metadata1 = at.symlink_metadata("dangle");
|
||||||
let metadata2 = at.symlink_metadata("d2");
|
let metadata2 = at.symlink_metadata("d2");
|
||||||
|
@ -2310,9 +2310,15 @@ 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(unix)]
|
#[cfg(all(unix, not(target_os = "freebsd")))]
|
||||||
#[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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue