Skip to content

Commit

Permalink
improve test printing
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi authored and FranchuFranchu committed Mar 22, 2024
1 parent a2c8610 commit 38b4ac0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ fn test_run(name: &str, host: Arc<Mutex<Host>>) {
fn test_pre_reduce_run(path: &str, mut book: Book) {
print!("{path}...");
print!(" pre-reduce");
io::stdout().flush().unwrap();

let start = Instant::now();
let pre_stats = book.pre_reduce(&|x| x == "main", None, u64::MAX);
let host = hvmc::stdlib::create_host(&book);
print!(" {:.3?}...", start.elapsed());
io::stdout().flush().unwrap();

let host = hvmc::stdlib::create_host(&book);
let Some((mut rwts, net)) = execute_host(host) else {
assert_snapshot!(show_rewrites(&pre_stats.rewrites));
return;
Expand Down

0 comments on commit 38b4ac0

Please sign in to comment.