From 6c75b73a6ae3afd5690c0d1ab80c53e4f0a1fb86 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 28 Oct 2013 11:47:20 -0700 Subject: [PATCH] Handle another possible error in a unix pipe test This cropped up on the bsd bot, and if it's an error that gets thrown then it's fine to just whitelist another type of error in the test. --- src/libstd/rt/io/net/unix.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstd/rt/io/net/unix.rs b/src/libstd/rt/io/net/unix.rs index e424956e2ff..d9bdb73066d 100644 --- a/src/libstd/rt/io/net/unix.rs +++ b/src/libstd/rt/io/net/unix.rs @@ -243,7 +243,8 @@ mod tests { let mut stop = false; while !stop{ do io_error::cond.trap(|e| { - assert_eq!(e.kind, BrokenPipe); + assert!(e.kind == BrokenPipe || e.kind == NotConnected, + "unknown error {:?}", e); stop = true; }).inside { server.write(buf);