summaryrefslogtreecommitdiff
path: root/test/test_unistd.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-06-04 21:12:05 -0600
committerAlan Somers <asomers@gmail.com>2020-06-04 21:56:09 -0600
commitf698fd3807cae9a2c55d4f7aca3ac4791750713e (patch)
tree5e49b0e25b40ddaaec07484d4a365f6f37a3b9a6 /test/test_unistd.rs
parenta777389c13ae0d64eb3ec28f29ba77d3eaec565a (diff)
downloadnix-f698fd3807cae9a2c55d4f7aca3ac4791750713e.zip
Remove several deprecated constants and functions
* `unistd::daemon` on Apple * `unistd::pipe2` on Apple * `sys::event::FilterFlag::NOTE_EXIT_REPARENTED` on Apple * `sys::event::FilterFlag::NOTE_REAP` on Apple * `sys::ptrace::ptrace` on Android and Linux All have been deprecated for more than two releases and one year.
Diffstat (limited to 'test/test_unistd.rs')
-rw-r--r--test/test_unistd.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index 0a41b65f..642f31cd 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -561,6 +561,14 @@ fn test_pipe() {
// pipe2(2) is the same as pipe(2), except it allows setting some flags. Check
// that we can set a flag.
+#[cfg(any(target_os = "android",
+ target_os = "dragonfly",
+ target_os = "emscripten",
+ target_os = "freebsd",
+ target_os = "linux",
+ target_os = "redox",
+ target_os = "netbsd",
+ target_os = "openbsd"))]
#[test]
fn test_pipe2() {
let (fd0, fd1) = pipe2(OFlag::O_CLOEXEC).unwrap();