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:
commit
c0222cda27
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user