From f698fd3807cae9a2c55d4f7aca3ac4791750713e Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Thu, 4 Jun 2020 21:12:05 -0600 Subject: 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. --- test/test_unistd.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/test_unistd.rs') 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(); -- cgit v1.2.3