From 0f187873b9347aeefebdf621700e9b670a1a40ee Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 10 Nov 2024 07:30:25 +0900 Subject: [PATCH] tests: Work around hang on sys_{elapsed,tickfreq,time} on armv7r-none-eabi with QEMU 9.1.1 --- tests/no-std/src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/no-std/src/main.rs b/tests/no-std/src/main.rs index 0a0129c..a865a5e 100644 --- a/tests/no-std/src/main.rs +++ b/tests/no-std/src/main.rs @@ -260,7 +260,7 @@ fn run() { { // sys_* println!("sys_clock: {}", sys_clock().unwrap()); - if cfg!(not(all(target_arch = "arm", target_feature = "v8", target_feature = "rclass"))) { + if cfg!(not(all(target_arch = "arm", target_feature = "rclass"))) { println!("sys_elapsed: {}", sys_elapsed().unwrap()); } // TODO: sys_heapinfo @@ -273,8 +273,10 @@ fn run() { assert_eq!(sys_iserror(isize::MIN), true); // println!("{}", sys_readc() as char); // only works on qemu-user println!("sys_system: {}", sys_system(c!("pwd"))); - println!("sys_tickfreq: {}", sys_tickfreq().unwrap()); - println!("sys_time: {}", sys_time().unwrap()); + if cfg!(not(all(target_arch = "arm", target_feature = "rclass"))) { + println!("sys_tickfreq: {}", sys_tickfreq().unwrap()); + println!("sys_time: {}", sys_time().unwrap()); + } print!("sys_writec: "); sys_writec(b'a'); sys_writec(b'\n');