Skip to content

Commit

Permalink
Rollup merge of rust-lang#22363 - semarie:openbsd-test_file_desc, r=a…
Browse files Browse the repository at this point in the history
…lexcrichton

`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.
  • Loading branch information
Manishearth committed Feb 17, 2015
2 parents cdf0cb0 + eb8e113 commit 3e7af91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libstd/sys/unix/fs.rs
Expand Up @@ -364,7 +364,10 @@ mod tests {
use os;
use prelude::v1::*;

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

0 comments on commit 3e7af91

Please sign in to comment.