Skip to content

Commit

Permalink
tests: Work around hang on sys_{elapsed,tickfreq,time} on armv7r-none…
Browse files Browse the repository at this point in the history
…-eabi with QEMU 9.1.1
  • Loading branch information
taiki-e committed Nov 9, 2024
1 parent 9fc8e3b commit 0f18787
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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,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');
Expand Down

0 comments on commit 0f18787

Please sign in to comment.