mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: disable failed tests for chown on OpenBSD
Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
b69070fdff
commit
62ec71d6fa
1 changed files with 11 additions and 5 deletions
|
@ -218,7 +218,7 @@ fn test_chown_failed_stdout() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
// FixME: Fails on freebsd because of chown: invalid group: 'root:root'
|
// FixME: Fails on freebsd because of chown: invalid group: 'root:root'
|
||||||
#[cfg(not(target_os = "freebsd"))]
|
#[cfg(all(not(target_os = "freebsd"), not(target_os = "openbsd")))]
|
||||||
fn test_chown_owner_group() {
|
fn test_chown_owner_group() {
|
||||||
// test chown username:group file.txt
|
// test chown username:group file.txt
|
||||||
|
|
||||||
|
@ -283,7 +283,7 @@ fn test_chown_owner_group() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
// FixME: Fails on freebsd because of chown: invalid group: 'root:root'
|
// FixME: Fails on freebsd because of chown: invalid group: 'root:root'
|
||||||
#[cfg(not(target_os = "freebsd"))]
|
#[cfg(all(not(target_os = "freebsd"), not(target_os = "openbsd")))]
|
||||||
fn test_chown_various_input() {
|
fn test_chown_various_input() {
|
||||||
// test chown username:group file.txt
|
// test chown username:group file.txt
|
||||||
|
|
||||||
|
@ -346,7 +346,10 @@ fn test_chown_various_input() {
|
||||||
// FixME: on macos & freebsd group name is not recognized correctly: "chown: invalid group: ':groupname'
|
// FixME: on macos & freebsd group name is not recognized correctly: "chown: invalid group: ':groupname'
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
windows,
|
windows,
|
||||||
all(unix, not(any(target_os = "macos", target_os = "freebsd")))
|
all(
|
||||||
|
unix,
|
||||||
|
not(any(target_os = "macos", target_os = "freebsd", target_os = "openbsd"))
|
||||||
|
)
|
||||||
))]
|
))]
|
||||||
fn test_chown_only_group() {
|
fn test_chown_only_group() {
|
||||||
// test chown :group file.txt
|
// test chown :group file.txt
|
||||||
|
@ -481,7 +484,7 @@ fn test_chown_only_user_id_nonexistent_user() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
// FixME: stderr = chown: ownership of 'test_chown_file1' retained as cuuser:wheel
|
// FixME: stderr = chown: ownership of 'test_chown_file1' retained as cuuser:wheel
|
||||||
#[cfg(not(target_os = "freebsd"))]
|
#[cfg(all(not(target_os = "freebsd"), not(target_os = "openbsd")))]
|
||||||
fn test_chown_only_group_id() {
|
fn test_chown_only_group_id() {
|
||||||
// test chown :1111 file.txt
|
// test chown :1111 file.txt
|
||||||
|
|
||||||
|
@ -546,6 +549,7 @@ fn test_chown_only_group_id_nonexistent_group() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_chown_owner_group_id() {
|
fn test_chown_owner_group_id() {
|
||||||
// test chown 1111:1111 file.txt
|
// test chown 1111:1111 file.txt
|
||||||
|
|
||||||
|
@ -606,7 +610,7 @@ fn test_chown_owner_group_id() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
// FixME: Fails on freebsd because of chown: invalid group: '0:root'
|
// FixME: Fails on freebsd because of chown: invalid group: '0:root'
|
||||||
#[cfg(not(target_os = "freebsd"))]
|
#[cfg(all(not(target_os = "freebsd"), not(target_os = "openbsd")))]
|
||||||
fn test_chown_owner_group_mix() {
|
fn test_chown_owner_group_mix() {
|
||||||
// test chown 1111:group file.txt
|
// test chown 1111:group file.txt
|
||||||
|
|
||||||
|
@ -773,6 +777,7 @@ fn test_chown_no_change_to_user() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_chown_no_change_to_group() {
|
fn test_chown_no_change_to_group() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
@ -805,6 +810,7 @@ fn test_chown_no_change_to_group() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_chown_no_change_to_user_group() {
|
fn test_chown_no_change_to_user_group() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue