summaryrefslogtreecommitdiffstats
path: root/tokio-uds
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2018-07-24 15:00:01 -0600
committerCarl Lerche <me@carllerche.com>2018-07-24 14:00:01 -0700
commit5d0d2a2e1214f856993df6965825c89bfcaa879e (patch)
tree42f80170e048052947adeddffa00c75864af4d5c /tokio-uds
parentad4693a18f1cb6f1d9788fc263f6db497b39682e (diff)
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.
Diffstat (limited to 'tokio-uds')
-rw-r--r--tokio-uds/src/ucred.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tokio-uds/src/ucred.rs b/tokio-uds/src/ucred.rs
index e74f4b34..cf792f91 100644
--- a/tokio-uds/src/ucred.rs
+++ b/tokio-uds/src/ucred.rs
@@ -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(test)]
mod test {
@@ -94,6 +94,7 @@ mod test {
use libc::getegid;
#[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() {
let (a, b) = UnixStream::pair().unwrap();
let cred_a = a.peer_cred().unwrap();