1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests: disable failed tests for ls on OpenBSD

Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
Laurent Cheylus 2024-07-06 22:29:17 +02:00
parent a425da0a12
commit 00cca34a9c
No known key found for this signature in database

View file

@ -158,7 +158,11 @@ fn test_ls_ordering() {
.stdout_matches(&Regex::new("some-dir1:\\ntotal 0").unwrap());
}
#[cfg(all(unix, feature = "df", not(target_os = "freebsd")))]
#[cfg(all(
unix,
feature = "df",
not(any(target_os = "freebsd", target_os = "openbsd"))
))]
fn get_filesystem_type(scene: &TestScenario, path: &Path) -> String {
let mut cmd = scene.ccmd("df");
cmd.args(&["-PT"]).arg(path);
@ -174,7 +178,8 @@ fn get_filesystem_type(scene: &TestScenario, path: &Path) -> String {
}
#[cfg(all(feature = "truncate", feature = "dd"))]
#[test] // FIXME: fix this test for FreeBSD
#[test] // FIXME: fix this test for FreeBSD and OpenBSD
#[cfg(not(target_os = "openbsd"))]
fn test_ls_allocation_size() {
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
@ -1421,6 +1426,7 @@ fn test_ls_long_dangling_symlink_color() {
}
#[test]
#[cfg(not(target_os = "openbsd"))]
fn test_ls_long_total_size() {
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
@ -2440,7 +2446,7 @@ fn test_ls_indicator_style() {
}
}
#[cfg(not(any(target_vendor = "apple", target_os = "windows")))] // Truncate not available on mac or win
#[cfg(not(any(target_vendor = "apple", target_os = "windows", target_os = "openbsd")))] // Truncate not available on mac or win
#[test]
fn test_ls_human_si() {
let scene = TestScenario::new(util_name!());
@ -4310,6 +4316,7 @@ fn test_ls_cf_output_should_be_delimited_by_tab() {
#[cfg(all(unix, feature = "dd"))]
#[test]
#[cfg(not(target_os = "openbsd"))]
fn test_posixly_correct_and_block_size_env_vars() {
let scene = TestScenario::new(util_name!());
@ -4363,6 +4370,7 @@ fn test_posixly_correct_and_block_size_env_vars() {
#[cfg(all(unix, feature = "dd"))]
#[test]
#[cfg(not(target_os = "openbsd"))]
fn test_posixly_correct_and_block_size_env_vars_with_k() {
let scene = TestScenario::new(util_name!());
@ -4423,6 +4431,7 @@ fn test_ls_invalid_block_size() {
#[cfg(all(unix, feature = "dd"))]
#[test]
#[cfg(not(target_os = "openbsd"))]
fn test_ls_invalid_block_size_in_env_var() {
let scene = TestScenario::new(util_name!());
@ -4461,6 +4470,7 @@ fn test_ls_invalid_block_size_in_env_var() {
#[cfg(all(unix, feature = "dd"))]
#[test]
#[cfg(not(target_os = "openbsd"))]
fn test_ls_block_size_override() {
let scene = TestScenario::new(util_name!());