From 8b3ccdf345230e09b373bcf3baa00e9613e3d494 Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Sun, 17 Nov 2024 13:17:02 +0000 Subject: [PATCH] openbsd: skip ATF_* constants in CI the constants were removed in OpenBSD 7.7 by https://github.com/openbsd/src/commit/ff46e7d6ebc305e25e40b31e65a50463cfa5dc30 they were unused since 1991. --- libc-test/build.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libc-test/build.rs b/libc-test/build.rs index 5c5bba2d360e..fd110ed90aaa 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -550,6 +550,15 @@ fn test_openbsd(target: &str) { } }); + cfg.skip_const(move |name| { + match name { + // Removed in OpenBSD 7.7 (unused since 1991) + "ATF_COM" | "ATF_PERM" | "ATF_PUBL" | "ATF_USETRAILERS" => true, + + _ => false, + } + }); + cfg.skip_fn(move |name| { match name { // futex() has volatile arguments, but that doesn't exist in Rust.