Ignore fns that have suddenly disappeared on Android CI

This commit is contained in:
Yuki Okushi 2020-05-21 14:45:59 +09:00
parent b228d6f40e
commit 1528539b0a
No known key found for this signature in database
GPG key ID: B0986C85C0E2DAA1

View file

@ -1355,6 +1355,7 @@ fn test_android(target: &str) {
t => panic!("unsupported target: {}", t),
};
let x86 = target.contains("i686") || target.contains("x86_64");
let aarch64 = target.contains("aarch64");
let mut cfg = ctest_cfg();
cfg.define("_GNU_SOURCE", None);
@ -1564,6 +1565,12 @@ fn test_android(target: &str) {
// test the XSI version below.
"strerror_r" => true,
// FIXME: Somehow we cannot find these fns on aarch64.
// https://github.com/rust-lang/libc/issues/1765
"lockf" | "preadv64" | "pwritev64" | "openpty" |
"forkpty" | "login_tty" | "getifaddrs" | "freeifaddrs" |
"sethostname" | "getgrgid_r" | "getgrnam_r" if aarch64 => true,
_ => false,
}
});