Skip to content

Commit 3931b02

Browse files
committed
fixup to Disable the libc::personality doc test on QEMU
1 parent 4583d6d commit 3931b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sys/personality.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ libc_bitflags! {
5454
///
5555
/// Example:
5656
///
57-
/// ```
57+
#[cfg_attr(any(qemu, target_arch = "aarch64"), doc = " ```no_run")]
58+
#[cfg_attr(not(any(qemu, target_arch = "aarch64")), doc = " ```")]
5859
/// # use nix::sys::personality::{self, Persona};
5960
/// let pers = personality::get().unwrap();
6061
/// assert!(!pers.contains(Persona::WHOLE_SECONDS));

0 commit comments

Comments
 (0)