Skip to content

Commit 062b0fd

Browse files
committed
std: Ignore bind error tests on android. rust-lang#11530
1 parent 279366a commit 062b0fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/libstd/io/net/tcp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ mod test {
136136
use io::*;
137137
use prelude::*;
138138

139+
// FIXME #11530 this fails on android because tests are run as root
139140
iotest!(fn bind_error() {
140141
let mut called = false;
141142
io_error::cond.trap(|e| {
@@ -147,7 +148,7 @@ mod test {
147148
assert!(listener.is_none());
148149
});
149150
assert!(called);
150-
} #[ignore(cfg(windows))])
151+
} #[ignore(cfg(windows))] #[ignore(cfg(target_os = "android"))])
151152

152153
iotest!(fn connect_error() {
153154
let mut called = false;

src/libstd/io/net/udp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ mod test {
9999
use super::*;
100100
use io::net::ip::{SocketAddr};
101101

102+
// FIXME #11530 this fails on android because tests are run as root
102103
iotest!(fn bind_error() {
103104
let mut called = false;
104105
io_error::cond.trap(|e| {
@@ -110,7 +111,7 @@ mod test {
110111
assert!(socket.is_none());
111112
});
112113
assert!(called);
113-
} #[ignore(cfg(windows))])
114+
} #[ignore(cfg(windows))] #[ignore(cfg(target_os = "android"))])
114115

115116
iotest!(fn socket_smoke_test_ip4() {
116117
let server_ip = next_test_ip4();

0 commit comments

Comments
 (0)