std: Ignore bind error tests on android. #11530
This commit is contained in:
parent
279366a0b2
commit
062b0fd264
|
@ -136,6 +136,7 @@ mod test {
|
||||||
use io::*;
|
use io::*;
|
||||||
use prelude::*;
|
use prelude::*;
|
||||||
|
|
||||||
|
// FIXME #11530 this fails on android because tests are run as root
|
||||||
iotest!(fn bind_error() {
|
iotest!(fn bind_error() {
|
||||||
let mut called = false;
|
let mut called = false;
|
||||||
io_error::cond.trap(|e| {
|
io_error::cond.trap(|e| {
|
||||||
|
@ -147,7 +148,7 @@ mod test {
|
||||||
assert!(listener.is_none());
|
assert!(listener.is_none());
|
||||||
});
|
});
|
||||||
assert!(called);
|
assert!(called);
|
||||||
} #[ignore(cfg(windows))])
|
} #[ignore(cfg(windows))] #[ignore(cfg(target_os = "android"))])
|
||||||
|
|
||||||
iotest!(fn connect_error() {
|
iotest!(fn connect_error() {
|
||||||
let mut called = false;
|
let mut called = false;
|
||||||
|
|
|
@ -99,6 +99,7 @@ mod test {
|
||||||
use super::*;
|
use super::*;
|
||||||
use io::net::ip::{SocketAddr};
|
use io::net::ip::{SocketAddr};
|
||||||
|
|
||||||
|
// FIXME #11530 this fails on android because tests are run as root
|
||||||
iotest!(fn bind_error() {
|
iotest!(fn bind_error() {
|
||||||
let mut called = false;
|
let mut called = false;
|
||||||
io_error::cond.trap(|e| {
|
io_error::cond.trap(|e| {
|
||||||
|
@ -110,7 +111,7 @@ mod test {
|
||||||
assert!(socket.is_none());
|
assert!(socket.is_none());
|
||||||
});
|
});
|
||||||
assert!(called);
|
assert!(called);
|
||||||
} #[ignore(cfg(windows))])
|
} #[ignore(cfg(windows))] #[ignore(cfg(target_os = "android"))])
|
||||||
|
|
||||||
iotest!(fn socket_smoke_test_ip4() {
|
iotest!(fn socket_smoke_test_ip4() {
|
||||||
let server_ip = next_test_ip4();
|
let server_ip = next_test_ip4();
|
||||||
|
|
Loading…
Reference in a new issue