Skip to content

Commit 3e7af91

Browse files
committed
Rollup merge of rust-lang#22363 - semarie:openbsd-test_file_desc, r=alexcrichton
`pipe(2)`, under FreeBSD and OpenBSD return a bidirectionnal pipe. So reading from the writer would block (waiting data) instead of returning an error. like for FreeBSD, disable the test for OpenBSD.
2 parents cdf0cb0 + eb8e113 commit 3e7af91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libstd/sys/unix/fs.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,10 @@ mod tests {
364364
use os;
365365
use prelude::v1::*;
366366

367-
#[cfg_attr(target_os = "freebsd", ignore)] // hmm, maybe pipes have a tiny buffer
367+
#[cfg_attr(any(target_os = "freebsd",
368+
target_os = "openbsd"),
369+
ignore)]
370+
// under some system, pipe(2) will return a bidrectionnal pipe
368371
#[test]
369372
fn test_file_desc() {
370373
// Run this test with some pipes so we don't have to mess around with

0 commit comments

Comments
 (0)