diff --git a/tests/by-util/test_install.rs b/tests/by-util/test_install.rs index 84dde5bfa37..bbddd65efa3 100644 --- a/tests/by-util/test_install.rs +++ b/tests/by-util/test_install.rs @@ -3433,5 +3433,9 @@ fn test_install_strip_program_sees_caller_umask() { .umask(0o027) .args(&["-s", "--strip-program=./recorder", "src", "dest"]) .succeeds(); + + #[cfg(not(target_os = "openbsd"))] assert_eq!(at.read("seen"), "0027\n"); + #[cfg(target_os = "openbsd")] + assert_eq!(at.read("seen"), "027\n"); } diff --git a/tests/by-util/test_split.rs b/tests/by-util/test_split.rs index d66c5d1a97c..d01eed899cb 100644 --- a/tests/by-util/test_split.rs +++ b/tests/by-util/test_split.rs @@ -2598,9 +2598,9 @@ fn test_number_with_plus_prefix( assert_eq!(files, expected_files, "-n {number}"); } -#[cfg(unix)] -#[uutests::wasi_ignore(NoSubprocessSpawning)] #[test] +#[cfg(all(unix, not(target_os = "openbsd")))] // head has no -c option on OpenBSD +#[uutests::wasi_ignore(NoSubprocessSpawning)] fn test_number_filter_exiting_early_keeps_other_chunks() { let (at, mut ucmd) = at_and_ucmd!(); let mut data = vec![b'k'; 200_000];