From eb8e1137f536edafa294f5e2e251cb9413d2b8e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Sun, 15 Feb 2015 12:06:21 +0100 Subject: [PATCH] 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. --- src/libstd/sys/unix/fs.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 66ae018cb36..0ee2b5b6809 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -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