From 2faab59aa4abce17e04158fc2a74e1daf8f8d9f1 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Mon, 11 Dec 2023 12:45:16 +0100 Subject: [PATCH] tests/hostname: disable failing test_hostname::test_hostname_ip on OpenBSD - On OpenBSD, test_hostname::test_hostname_ip fails with "failed to lookup address information: Name does not resolve" error Signed-off-by: Laurent Cheylus --- tests/by-util/test_hostname.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_hostname.rs b/tests/by-util/test_hostname.rs index 84cb73e2e..972ec4aab 100644 --- a/tests/by-util/test_hostname.rs +++ b/tests/by-util/test_hostname.rs @@ -14,8 +14,8 @@ fn test_hostname() { assert!(ls_default_res.stdout().len() >= ls_domain_res.stdout().len()); } -// FixME: fails for "MacOS" and "freebsd" "failed to lookup address information: Name does not resolve" -#[cfg(not(any(target_os = "macos", target_os = "freebsd")))] +// FixME: fails for "MacOS", "freebsd" and "openbsd" "failed to lookup address information: Name does not resolve" +#[cfg(not(any(target_os = "macos", target_os = "freebsd", target_os = "openbsd")))] #[test] fn test_hostname_ip() { let result = new_ucmd!().arg("-i").succeeds();