Skip to content

Commit a6b4af7

Browse files
committed
Skip lio_listio doc test on musl/aarch64/i686 as it hangs
Do not run this doc test on: * aarch64-unknown-linux-musl * i686-unknown-linux-musl because it hangs on these targets. After further debugging, we think this is likely a bug of musl. Since we only test our bindings and do not intend to fix the underlying libc bug, we skip this test here. See this thread [1] for the discussion of this issue [1]: #2689 (comment)
1 parent de07a50 commit a6b4af7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/sys/aio.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,17 @@ pub fn aio_suspend(
11411141
/// `EINTR`, in which case some but not all operations may have been submitted.
11421142
/// In that case, you must check the status of each individual operation, and
11431143
/// possibly resubmit some.
1144-
/// ```
1144+
///
1145+
// Do not run this doc test on:
1146+
// * aarch64-unknown-linux-musl
1147+
// * i686-unknown-linux-musl
1148+
// because it hangs on these targets. After further debugging, we think this is
1149+
// likely a bug of musl. Since we only test our bindings and do not intend to
1150+
// fix the underlying libc bug, we skip this test here.
1151+
// See this thread for the discussion of this issue:
1152+
// https://github.com/nix-rust/nix/pull/2689#issuecomment-3419813159
1153+
#[cfg_attr(all(target_env = "musl", any(target_arch = "aarch64", target_arch = "x86")), doc = " ```no_run")]
1154+
#[cfg_attr(not(all(target_env = "musl", any(target_arch = "aarch64", target_arch = "x86"))), doc = " ```")]
11451155
/// # use libc::c_int;
11461156
/// # use std::os::unix::io::AsFd;
11471157
/// # use std::sync::atomic::{AtomicBool, Ordering};

0 commit comments

Comments
 (0)