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.
This commit is contained in:
Alex Crichton 2013-10-28 11:47:20 -07:00
parent cb5b21eba7
commit 6c75b73a6a
1 changed files with 2 additions and 1 deletions

View File

@ -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);