Skip to content

Commit 337db02

Browse files
committed
---
yaml --- r: 145148 b: refs/heads/try2 c: 3686c6c h: refs/heads/master v: v3
1 parent 86e074b commit 337db02

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 879cfe6049647cf8ecf31682b26e28b905f7d27e
8+
refs/heads/try2: 3686c6cbcf6fb5a7a07c852af632a590bc52d74b
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/rt/io/net/tcp.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,17 @@ mod test {
178178
}
179179

180180
#[test]
181-
#[ignore(cfg(windows))] // FIXME #8811
182181
fn connect_error() {
183182
do run_in_mt_newsched_task {
184183
let mut called = false;
185184
do io_error::cond.trap(|e| {
186-
assert_eq!(e.kind, ConnectionRefused);
185+
let expected_error = if cfg!(unix) {
186+
ConnectionRefused
187+
} else {
188+
// On Win32, opening port 1 gives WSAEADDRNOTAVAIL error.
189+
OtherIoError
190+
};
191+
assert_eq!(e.kind, expected_error);
187192
called = true;
188193
}).inside {
189194
let addr = SocketAddr { ip: Ipv4Addr(0, 0, 0, 0), port: 1 };

0 commit comments

Comments
 (0)