Skip to content

Commit eb8e113

Browse files
committed
openbsd: disable test_file_desc test
pipe(2), under FreeBSD and OpenBSD return a bidirectionnal pipe. So reading from the writer would block (waiting data) instead of returning an error.
1 parent b63cee4 commit eb8e113

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)