Skip to content

Commit c32e6c9

Browse files
committed
armv7-unknown-freebsd: fix test errors regarding __gregset_t
We must skip roundtrip tests for __gregset_t, because C functions cannot return arrays.
1 parent 8d0b3a0 commit c32e6c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libc-test/build.rs

+7
Original file line numberDiff line numberDiff line change
@@ -2701,6 +2701,13 @@ fn test_freebsd(target: &str) {
27012701
_ => false,
27022702
}
27032703
});
2704+
if target.contains("arm") {
2705+
cfg.skip_roundtrip(move |s| match s {
2706+
// Can't return an array from a C function.
2707+
"__gregset_t" => true,
2708+
_ => false,
2709+
});
2710+
}
27042711

27052712
cfg.generate("../src/lib.rs", "main.rs");
27062713
}

0 commit comments

Comments
 (0)