You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-libbpf-rs0.21/libbpf-rs-restrict-probe-ar...

27 lines
716 B

--- a/tests/test.rs
+++ b/tests/test.rs
@@ -17,6 +17,7 @@ use std::time::Duration;
use nix::errno;
use nix::unistd::close;
use plain::Plain;
+#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))]
use probe::probe;
use scopeguard::defer;
use std::ptr;
@@ -1136,6 +1137,7 @@ fn test_sudo_object_map_handle_clone() {
}
#[test]
+#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))]
fn test_sudo_object_usdt() {
bump_rlimit_mlock();
@@ -1165,6 +1167,7 @@ fn test_sudo_object_usdt() {
}
#[test]
+#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))]
fn test_sudo_object_usdt_cookie() {
bump_rlimit_mlock();