Skip to content

Commit 9a3010b

Browse files
bors[bot]asomers
andauthored
Merge #2062
2062: Disable the doc test for sys::personality::personality on aarch64 r=asomers a=asomers It's failing in CI, and we don't yet know why. Possibly the cloud provider just turned on seccomp. Issue #2060 Co-authored-by: Alan Somers <[email protected]>
2 parents 89b4976 + fccc89f commit 9a3010b

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)