Skip to content

Commit

Permalink
armv7-unknown-freebsd: fix test errors regarding __gregset_t
Browse files Browse the repository at this point in the history
We must skip roundtrip tests for __gregset_t, because C functions cannot
return arrays.
  • Loading branch information
asomers committed Oct 21, 2024
1 parent 8d0b3a0 commit c32e6c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2701,6 +2701,13 @@ fn test_freebsd(target: &str) {
_ => false,
}
});
if target.contains("arm") {
cfg.skip_roundtrip(move |s| match s {
// Can't return an array from a C function.
"__gregset_t" => true,
_ => false,
});
}

cfg.generate("../src/lib.rs", "main.rs");
}
Expand Down

0 comments on commit c32e6c9

Please sign in to comment.