auto merge of #10133 : alexcrichton/rust/another-error, r=thestinger

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.
This commit is contained in:
bors 2013-10-28 19:26:23 -07:00
commit c0222cda27

View File

@ -243,7 +243,8 @@ fn write_begone() {
let mut stop = false; let mut stop = false;
while !stop{ while !stop{
do io_error::cond.trap(|e| { do io_error::cond.trap(|e| {
assert_eq!(e.kind, BrokenPipe); assert!(e.kind == BrokenPipe || e.kind == NotConnected,
"unknown error {:?}", e);
stop = true; stop = true;
}).inside { }).inside {
server.write(buf); server.write(buf);