mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: disable failed tests for ls on OpenBSD
Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
a425da0a12
commit
00cca34a9c
1 changed files with 13 additions and 3 deletions
|
@ -158,7 +158,11 @@ fn test_ls_ordering() {
|
||||||
.stdout_matches(&Regex::new("some-dir1:\\ntotal 0").unwrap());
|
.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 {
|
fn get_filesystem_type(scene: &TestScenario, path: &Path) -> String {
|
||||||
let mut cmd = scene.ccmd("df");
|
let mut cmd = scene.ccmd("df");
|
||||||
cmd.args(&["-PT"]).arg(path);
|
cmd.args(&["-PT"]).arg(path);
|
||||||
|
@ -174,7 +178,8 @@ fn get_filesystem_type(scene: &TestScenario, path: &Path) -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(feature = "truncate", feature = "dd"))]
|
#[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() {
|
fn test_ls_allocation_size() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
@ -1421,6 +1426,7 @@ fn test_ls_long_dangling_symlink_color() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_ls_long_total_size() {
|
fn test_ls_long_total_size() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
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]
|
#[test]
|
||||||
fn test_ls_human_si() {
|
fn test_ls_human_si() {
|
||||||
let scene = TestScenario::new(util_name!());
|
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"))]
|
#[cfg(all(unix, feature = "dd"))]
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_posixly_correct_and_block_size_env_vars() {
|
fn test_posixly_correct_and_block_size_env_vars() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
|
|
||||||
|
@ -4363,6 +4370,7 @@ fn test_posixly_correct_and_block_size_env_vars() {
|
||||||
|
|
||||||
#[cfg(all(unix, feature = "dd"))]
|
#[cfg(all(unix, feature = "dd"))]
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_posixly_correct_and_block_size_env_vars_with_k() {
|
fn test_posixly_correct_and_block_size_env_vars_with_k() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
|
|
||||||
|
@ -4423,6 +4431,7 @@ fn test_ls_invalid_block_size() {
|
||||||
|
|
||||||
#[cfg(all(unix, feature = "dd"))]
|
#[cfg(all(unix, feature = "dd"))]
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_ls_invalid_block_size_in_env_var() {
|
fn test_ls_invalid_block_size_in_env_var() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
|
|
||||||
|
@ -4461,6 +4470,7 @@ fn test_ls_invalid_block_size_in_env_var() {
|
||||||
|
|
||||||
#[cfg(all(unix, feature = "dd"))]
|
#[cfg(all(unix, feature = "dd"))]
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(target_os = "openbsd"))]
|
||||||
fn test_ls_block_size_override() {
|
fn test_ls_block_size_override() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue