Skip to content

Commit 8b3ccdf

Browse files
committed
openbsd: skip ATF_* constants in CI
the constants were removed in OpenBSD 7.7 by openbsd/src@ff46e7d they were unused since 1991.
1 parent 86b04cb commit 8b3ccdf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

libc-test/build.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,15 @@ fn test_openbsd(target: &str) {
550550
}
551551
});
552552

553+
cfg.skip_const(move |name| {
554+
match name {
555+
// Removed in OpenBSD 7.7 (unused since 1991)
556+
"ATF_COM" | "ATF_PERM" | "ATF_PUBL" | "ATF_USETRAILERS" => true,
557+
558+
_ => false,
559+
}
560+
});
561+
553562
cfg.skip_fn(move |name| {
554563
match name {
555564
// futex() has volatile arguments, but that doesn't exist in Rust.

0 commit comments

Comments
 (0)