Skip to content

Commit

Permalink
tests: Work around hang on sys_elapsed/sys_tickfreq on armv7r-none-ea…
Browse files Browse the repository at this point in the history
…bi with QEMU 9.1.1
  • Loading branch information
taiki-e committed Nov 9, 2024
1 parent 9fc8e3b commit 59e761b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/no-std/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -273,7 +273,9 @@ 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());
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');
Expand Down

0 comments on commit 59e761b

Please sign in to comment.