We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68740b4 commit d3e7700Copy full SHA for d3e7700
src/libstd/net/tcp.rs
@@ -233,13 +233,13 @@ mod tests {
233
}
234
235
236
- // FIXME #11530 this fails on android because tests are run as root
237
- #[cfg_attr(any(windows, target_os = "android"), ignore)]
238
#[test]
239
fn bind_error() {
240
- match TcpListener::bind("0.0.0.0:1") {
+ match TcpListener::bind("1.1.1.1:9999") {
241
Ok(..) => panic!(),
242
- Err(e) => assert_eq!(e.kind(), ErrorKind::PermissionDenied),
+ Err(e) =>
+ // EADDRNOTAVAIL is mapped to ConnectionRefused
+ assert_eq!(e.kind(), ErrorKind::ConnectionRefused),
243
244
245
0 commit comments