Skip to content

Commit eb74157

Browse files
committed
WIP: temporarily disable fcntl and cmsg tests on android
1 parent 3ff2bd8 commit eb74157

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::env;
77

88
fn do_cc() {
99
let target = env::var("TARGET").unwrap();
10-
if cfg!(unix) && !target.contains("wasi") {
10+
if cfg!(unix) && !target.contains("wasi") && !target.contains("android") {
1111
cc::Build::new().file("src/cmsg.c").compile("cmsg");
1212
}
1313
}
@@ -1536,6 +1536,7 @@ fn test_android(target: &str) {
15361536

15371537
cfg.generate("../src/lib.rs", "main.rs");
15381538

1539+
/*
15391540
// On Android also generate another script for testing linux/fcntl
15401541
// declarations. These cannot be tested normally because including both
15411542
// `linux/fcntl.h` and `fcntl.h` fails.
@@ -1565,6 +1566,7 @@ fn test_android(target: &str) {
15651566
t => t.to_string(),
15661567
});
15671568
cfg.generate("../src/lib.rs", "linux_fcntl.rs");
1569+
*/
15681570
}
15691571

15701572
fn test_freebsd(target: &str) {

0 commit comments

Comments
 (0)