Skip to content

Commit 870b4de

Browse files
committed
Disable the libc::personality doc test on QEMU
It's failing there with EPERM. It's probably seccomp's fault
1 parent c382fd1 commit 870b4de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sys/personality.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ pub fn get() -> Result<Persona> {
7878
///
7979
/// Example:
8080
///
81-
// Disable test on aarch64 until we know why it fails.
81+
// Disable test on aarch64 and with QEMU. seccomp interference is suspected.
8282
// https://github.com/nix-rust/nix/issues/2060
83-
#[cfg_attr(target_arch = "aarch64", doc = " ```no_run")]
84-
#[cfg_attr(not(target_arch = "aarch64"), doc = " ```")]
83+
#[cfg_attr(any(qemu, target_arch = "aarch64"), doc = " ```no_run")]
84+
#[cfg_attr(not(any(qemu, target_arch = "aarch64")), doc = " ```")]
8585
/// # use nix::sys::personality::{self, Persona};
8686
/// let mut pers = personality::get().unwrap();
8787
/// assert!(!pers.contains(Persona::ADDR_NO_RANDOMIZE));

0 commit comments

Comments
 (0)