From c342812bbb6478f1d1f0e7799540b50374cc4413 Mon Sep 17 00:00:00 2001 From: Jason Koch Date: Sun, 21 Jan 2024 17:31:05 -0800 Subject: [PATCH] add ignore flag for aarch64 integration tests --- tests/dump_multiple_page.rs | 2 ++ tests/dump_multiple_threads.rs | 1 + tests/dump_read.rs | 2 ++ tests/dump_sleep.rs | 3 +++ 4 files changed, 8 insertions(+) diff --git a/tests/dump_multiple_page.rs b/tests/dump_multiple_page.rs index ad9dcfb..622eba4 100644 --- a/tests/dump_multiple_page.rs +++ b/tests/dump_multiple_page.rs @@ -15,6 +15,7 @@ use test_binary::build_test_binary; #[test] #[ignore] #[timeout(20000)] +#[cfg(not(target_arch="aarch64"))] fn test_can_read_large_page() -> Result<(), io::Error> { let test_bin_path = build_test_binary("test-workload", "testbins").expect("error building test-workload"); @@ -88,6 +89,7 @@ fn test_can_read_large_page() -> Result<(), io::Error> { #[test] #[ignore] #[timeout(20000)] +#[cfg(not(target_arch="aarch64"))] fn test_cannot_read_dont_dump_page() -> Result<(), io::Error> { let test_bin_path = build_test_binary("test-workload", "testbins").expect("error building test-workload"); diff --git a/tests/dump_multiple_threads.rs b/tests/dump_multiple_threads.rs index 0ec2385..434c16d 100644 --- a/tests/dump_multiple_threads.rs +++ b/tests/dump_multiple_threads.rs @@ -13,6 +13,7 @@ use test_binary::build_test_binary; #[test] #[ignore] +#[cfg(not(target_arch="aarch64"))] fn test_can_read_stack_on_multiple_threads() -> Result<(), io::Error> { let test_bin_path = build_test_binary("test-workload", "testbins").expect("error building test-workload"); diff --git a/tests/dump_read.rs b/tests/dump_read.rs index 0b21365..7b5f412 100644 --- a/tests/dump_read.rs +++ b/tests/dump_read.rs @@ -15,6 +15,7 @@ use test_binary::build_test_binary; #[test] #[ignore] #[timeout(20000)] +#[cfg(not(target_arch="aarch64"))] fn test_can_read_stack() -> Result<(), io::Error> { let test_bin_path = build_test_binary("test-workload", "testbins").expect("error building test-workload"); @@ -80,6 +81,7 @@ fn test_can_read_stack() -> Result<(), io::Error> { #[test] #[ignore] #[timeout(20000)] +#[cfg(not(target_arch="aarch64"))] fn test_can_read_heap() -> Result<(), io::Error> { let test_bin_path = build_test_binary("test-workload", "testbins").expect("error building test-workload"); diff --git a/tests/dump_sleep.rs b/tests/dump_sleep.rs index c6a43aa..253a6cd 100644 --- a/tests/dump_sleep.rs +++ b/tests/dump_sleep.rs @@ -17,6 +17,7 @@ use subprocess::{Exec, PopenError}; #[test] #[ignore] #[timeout(10000)] +#[cfg(not(target_arch="aarch64"))] fn test_sleep_sleeps() -> Result<(), PopenError> { // shakeout test to check if sleep will run correctly @@ -40,6 +41,7 @@ fn test_sleep_sleeps() -> Result<(), PopenError> { #[test] #[ignore] #[timeout(20000)] +#[cfg(not(target_arch="aarch64"))] fn test_sleep_was_not_killed() { let mut sleep_p = Exec::cmd("sleep").arg("2").popen().unwrap(); assert_eq!(true, sleep_p.pid().is_some()); @@ -63,6 +65,7 @@ fn test_sleep_was_not_killed() { #[test] #[ignore] #[timeout(20000)] +#[cfg(not(target_arch="aarch64"))] fn test_sleep_output_is_parseable() { let sleep_p = Exec::cmd("sleep").arg("2").popen().unwrap(); assert_eq!(true, sleep_p.pid().is_some());