Skip to content

Commit e3f9f45

Browse files
committed
disable tests on android since tcp/ip permission cannot be acquired without help of apk
1 parent ca55317 commit e3f9f45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/librustuv/addrinfo.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ mod test {
251251
use super::*;
252252

253253
#[test]
254+
#[ignore(cfg(target_os="android"))] // cannot give tcp/ip permission without help of apk
254255
fn getaddrinfo_test() {
255256
let mut loop_ = Loop::new();
256257
let mut req = GetAddrInfoRequest::new();

src/libstd/rt/io/net/addrinfo.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ mod test {
114114
use super::*;
115115

116116
#[test]
117+
#[ignore(cfg(target_os="android"))] // cannot give tcp/ip permission without help of apk
117118
fn dns_smoke_test() {
118119
let ipaddrs = get_host_addresses("localhost").unwrap();
119120
let mut found_local = false;

0 commit comments

Comments
 (0)