Skip to content

Commit

Permalink
openbsd: skip ATF_* constants in CI
Browse files Browse the repository at this point in the history
the constants were removed in OpenBSD 7.7 by openbsd/src@ff46e7d
they were unused since 1991.
  • Loading branch information
semarie committed Nov 17, 2024
1 parent 86b04cb commit 8b3ccdf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8b3ccdf

Please sign in to comment.