Skip to content

Commit 6c75b73

Browse files
committed
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.
1 parent cb5b21e commit 6c75b73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/rt/io/net/unix.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ mod tests {
243243
let mut stop = false;
244244
while !stop{
245245
do io_error::cond.trap(|e| {
246-
assert_eq!(e.kind, BrokenPipe);
246+
assert!(e.kind == BrokenPipe || e.kind == NotConnected,
247+
"unknown error {:?}", e);
247248
stop = true;
248249
}).inside {
249250
server.write(buf);

0 commit comments

Comments
 (0)