mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
Ignore tokio-uds's test_socket_pair on FreeBSD. (#493)
It requires FreeBSD 12.0 or later. Also, fix a spelling mistake in a comment.
This commit is contained in:
@@ -85,7 +85,7 @@ pub mod impl_macos {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note that SO_PEERCRED is not supported on DragonFly (yet). So do not run tests.
|
// Note that LOCAL_PEERCRED is not supported on DragonFly (yet). So do not run tests.
|
||||||
#[cfg(not(target_os = "dragonfly"))]
|
#[cfg(not(target_os = "dragonfly"))]
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
@@ -94,6 +94,7 @@ mod test {
|
|||||||
use libc::getegid;
|
use libc::getegid;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(target_os = "freebsd", ignore = "Requires FreeBSD 12.0 or later. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=176419")]
|
||||||
fn test_socket_pair() {
|
fn test_socket_pair() {
|
||||||
let (a, b) = UnixStream::pair().unwrap();
|
let (a, b) = UnixStream::pair().unwrap();
|
||||||
let cred_a = a.peer_cred().unwrap();
|
let cred_a = a.peer_cred().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user