summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-16 11:27:42 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-17 06:23:36 +0530
commit3e7af91851ac8e72139c44e2876830e3783cc8bb (patch)
tree36d65c25d5a7dd186fdf8c5caa6fd23357dd235c /src/libstd
parentcdf0cb0a16a588c743cc09c383676c6a4c8db8f5 (diff)
parenteb8e1137f536edafa294f5e2e251cb9413d2b8e3 (diff)
downloadrust-3e7af91851ac8e72139c44e2876830e3783cc8bb.tar.gz
rust-3e7af91851ac8e72139c44e2876830e3783cc8bb.zip
Rollup merge of #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.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/unix/fs.rs5
1 files changed, 4 insertions, 1 deletions
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