Skip to content

Commit fccc89f

Browse files
committed
Disable the doc test for sys::personality::personality on aarch64
It's failing in CI, and we don't yet know why. Possibly the cloud provider just turned on seccomp. Issue #2060
1 parent 89b4976 commit fccc89f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sys/personality.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ pub fn get() -> Result<Persona> {
8080
///
8181
/// Example:
8282
///
83-
/// ```
83+
// Disable test on aarch64 until we know why it fails.
84+
// https://github.com/nix-rust/nix/issues/2060
85+
#[cfg_attr(target_arch = "aarch64", doc = " ```no_run")]
86+
#[cfg_attr(not(target_arch = "aarch64"), doc = " ```")]
8487
/// # use nix::sys::personality::{self, Persona};
8588
/// let mut pers = personality::get().unwrap();
8689
/// assert!(!pers.contains(Persona::ADDR_NO_RANDOMIZE));

0 commit comments

Comments
 (0)