Skip to content

Commit d2db352

Browse files
committed
test: Bump physical counter comparison
Use a bigger comparison during our assertion of the physical counter reset. The previous value was a little too low and would sometimes fail. Signed-off-by: Jack Thomson <[email protected]>
1 parent 0b32062 commit d2db352

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration_tests/functional/test_snapshot_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ def test_physical_counter_reset_aarch64(uvm_nano):
542542
snap_editor = host.get_binary("snapshot-editor")
543543

544544
cntpct_el0 = hex(0x603000000013DF01)
545-
# If a CPU runs at 3GHz, it will have a counter value of 1_000_000_000
546-
# in 1/3 of a second. The host surely will run for more than 1/3 second before
545+
# If a CPU runs at 3GHz, it will have a counter value of 8_000_000_000
546+
# in 2.66 seconds. The host surely will run for more than 2.66 seconds before
547547
# executing this test.
548-
max_value = 800_000_000
548+
max_value = 8_000_000_000
549549

550550
cmd = [
551551
str(snap_editor),

0 commit comments

Comments
 (0)