summaryrefslogtreecommitdiffstats
path: root/library/std/src/os/unix/ucred/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/os/unix/ucred/tests.rs')
-rw-r--r--library/std/src/os/unix/ucred/tests.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/library/std/src/os/unix/ucred/tests.rs b/library/std/src/os/unix/ucred/tests.rs
index e63a2fc24..dd99ecdd8 100644
--- a/library/std/src/os/unix/ucred/tests.rs
+++ b/library/std/src/os/unix/ucred/tests.rs
@@ -8,6 +8,7 @@ use libc::{getegid, geteuid, getpid};
target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
+ target_os = "tvos",
target_os = "macos",
target_os = "watchos",
target_os = "openbsd"
@@ -26,7 +27,13 @@ fn test_socket_pair() {
}
#[test]
-#[cfg(any(target_os = "linux", target_os = "ios", target_os = "macos", target_os = "watchos"))]
+#[cfg(any(
+ target_os = "linux",
+ target_os = "ios",
+ target_os = "macos",
+ target_os = "watchos",
+ target_os = "tvos",
+))]
fn test_socket_pair_pids(arg: Type) -> RetType {
// Create two connected sockets and get their peer credentials.
let (sock_a, sock_b) = UnixStream::pair().unwrap();