Skip to content

Commit 922bc09

Browse files
committed
chore(aarch64): increase the max_value for timer reset test
The counter value observed in tests sometimes is a bit larger than 1000 cycles. Adjust max_value to accommodate this. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 333bc2d commit 922bc09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vmm/src/arch/aarch64/vcpu.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,9 @@ mod tests {
271271
// We are reading the SYS_CNTPCT_EL0 right after resetting it.
272272
// If reset did happen successfully, the value should be quite small when we read it.
273273
// If the reset did not happen, the value will be same as on the host and it surely
274-
// will be more that MAX_VALUE.
275-
let max_value = 1000;
274+
// will be more that `max_value`. Measurements show that usually value is close
275+
// to 1000. Use bigger `max_value` just in case.
276+
let max_value = 10_000;
276277

277278
assert!(counter_value < max_value);
278279
}

0 commit comments

Comments
 (0)