diff options
author | Laurent Cheylus <foxy@free.fr> | 2024-07-06 22:29:12 +0200 |
---|---|---|
committer | Laurent Cheylus <foxy@free.fr> | 2024-07-06 22:29:12 +0200 |
commit | 62ec71d6fac04e22f0bc1b6a627644242665f45b (patch) | |
tree | 6556dae58bb7d307e6e071ebe0788a0290173c6e /tests | |
parent | b69070fdffa0601f111edc6a37da80897d2b3493 (diff) |
tests: disable failed tests for chown on OpenBSD
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/by-util/test_chown.rs | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/by-util/test_chown.rs b/tests/by-util/test_chown.rs index 3fb6d69c3..f503ec02e 100644 --- a/tests/by-util/test_chown.rs +++ b/tests/by-util/test_chown.rs @@ -218,7 +218,7 @@ fn test_chown_failed_stdout() { #[test] // 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() { // test chown username:group file.txt @@ -283,7 +283,7 @@ fn test_chown_owner_group() { #[test] // 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() { // 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' #[cfg(any( 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() { // test chown :group file.txt @@ -481,7 +484,7 @@ fn test_chown_only_user_id_nonexistent_user() { #[test] // 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() { // test chown :1111 file.txt @@ -546,6 +549,7 @@ fn test_chown_only_group_id_nonexistent_group() { } #[test] +#[cfg(not(target_os = "openbsd"))] fn test_chown_owner_group_id() { // test chown 1111:1111 file.txt @@ -606,7 +610,7 @@ fn test_chown_owner_group_id() { #[test] // 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() { // test chown 1111:group file.txt @@ -773,6 +777,7 @@ fn test_chown_no_change_to_user() { } #[test] +#[cfg(not(target_os = "openbsd"))] fn test_chown_no_change_to_group() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; @@ -805,6 +810,7 @@ fn test_chown_no_change_to_group() { } #[test] +#[cfg(not(target_os = "openbsd"))] fn test_chown_no_change_to_user_group() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; |