Skip to content

Commit 8c88d9a

Browse files
asomerstgross35
authored andcommitted
armv7-unknown-freebsd: fix test errors regarding __gregset_t
We must skip roundtrip tests for __gregset_t, because C functions cannot return arrays. (backport <#3995>) (cherry picked from commit c32e6c9)
1 parent c0c9391 commit 8c88d9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libc-test/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,6 +2764,13 @@ fn test_freebsd(target: &str) {
27642764
_ => false,
27652765
}
27662766
});
2767+
if target.contains("arm") {
2768+
cfg.skip_roundtrip(move |s| match s {
2769+
// Can't return an array from a C function.
2770+
"__gregset_t" => true,
2771+
_ => false,
2772+
});
2773+
}
27672774

27682775
cfg.generate("../src/lib.rs", "main.rs");
27692776
}

0 commit comments

Comments
 (0)