diff options
author | Alan Somers <asomers@gmail.com> | 2020-06-04 21:12:05 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2020-06-04 21:56:09 -0600 |
commit | f698fd3807cae9a2c55d4f7aca3ac4791750713e (patch) | |
tree | 5e49b0e25b40ddaaec07484d4a365f6f37a3b9a6 /test/test_unistd.rs | |
parent | a777389c13ae0d64eb3ec28f29ba77d3eaec565a (diff) | |
download | nix-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.rs | 8 |
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(); |