Skip to content

Commit 26e9854

Browse files
authored
Temporarily disable the do_test_unix_msg tests on FreeBSD. (#1477)
These tests appear to be failing on FreeBSD 15 due to a difference in behavior on `SOCK_SEQPACKET` FreeBSD 15. They pass on FreeBSD 14 and on other OS's.
1 parent 0a6cb07 commit 26e9854

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/net/unix.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ fn do_test_unix_msg_unconnected(addr: SocketAddrUnix) {
362362
}
363363

364364
#[cfg(not(any(target_os = "espidf", target_os = "redox", target_os = "wasi")))]
365+
#[cfg(not(target_os = "freebsd"))] // TODO: Investigate why these tests fail on FreeBSD.
365366
#[test]
366367
fn test_unix_msg() {
367368
use rustix::ffi::CString;
@@ -445,6 +446,7 @@ fn test_abstract_unix_msg_unconnected() {
445446

446447
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
447448
#[cfg(feature = "pipe")]
449+
#[cfg(not(target_os = "freebsd"))] // TODO: Investigate why these tests fail on FreeBSD.
448450
#[test]
449451
fn test_unix_msg_with_scm_rights() {
450452
crate::init();
@@ -741,6 +743,7 @@ fn test_unix_peercred_implicit() {
741743
/// over multiple control messages.
742744
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
743745
#[cfg(feature = "pipe")]
746+
#[cfg(not(target_os = "freebsd"))] // TODO: Investigate why these tests fail on FreeBSD.
744747
#[test]
745748
fn test_unix_msg_with_combo() {
746749
crate::init();

tests/net/unix_alloc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ fn do_test_unix_msg_unconnected(addr: SocketAddrUnix) {
359359
}
360360

361361
#[cfg(not(any(target_os = "espidf", target_os = "redox", target_os = "wasi")))]
362+
#[cfg(not(target_os = "freebsd"))] // TODO: Investigate why these tests fail on FreeBSD.
362363
#[test]
363364
fn test_unix_msg() {
364365
use rustix::ffi::CString;
@@ -442,6 +443,7 @@ fn test_abstract_unix_msg_unconnected() {
442443

443444
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
444445
#[cfg(feature = "pipe")]
446+
#[cfg(not(target_os = "freebsd"))] // TODO: Investigate why these tests fail on FreeBSD.
445447
#[test]
446448
fn test_unix_msg_with_scm_rights() {
447449
crate::init();
@@ -681,6 +683,7 @@ fn test_unix_peercred() {
681683
/// over multiple control messages.
682684
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
683685
#[cfg(feature = "pipe")]
686+
#[cfg(not(target_os = "freebsd"))] // TODO: Investigate why these tests fail on FreeBSD.
684687
#[test]
685688
fn test_unix_msg_with_combo() {
686689
crate::init();

0 commit comments

Comments
 (0)