Skip uinput tests on musl+mips+ppc64+sparc64

This commit is contained in:
Noah 2021-03-12 09:57:36 -06:00
parent e45454f20d
commit 3f6b151eed
No known key found for this signature in database
GPG Key ID: E8C14146AE337195

View File

@ -2514,6 +2514,10 @@ fn test_linux(target: &str) {
if ty.starts_with("__c_anonymous_") { if ty.starts_with("__c_anonymous_") {
return true; return true;
} }
// FIXME: musl CI has old headers
if (musl || sparc64) && ty.starts_with("uinput_") {
return true;
}
match ty { match ty {
// These cannot be tested when "resolv.h" is included and are tested // These cannot be tested when "resolv.h" is included and are tested
// in the `linux_elf.rs` file. // in the `linux_elf.rs` file.
@ -2675,6 +2679,12 @@ fn test_linux(target: &str) {
// FIXME: Requires recent kernel headers (5.8): // FIXME: Requires recent kernel headers (5.8):
"STATX_MNT_ID" => true, "STATX_MNT_ID" => true,
// FIXME: requires more recent kernel headers on CI
| "UINPUT_VERSION"
| "SW_MAX"
| "SW_CNT"
if musl || mips || ppc64 || riscv64 || sparc64 => true,
_ => false, _ => false,
} }
}); });