Skip to content

Commit 0d68075

Browse files
JackThomson2Manciukic
authored andcommitted
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 fd7ce71 commit 0d68075

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
@@ -574,10 +574,10 @@ def test_physical_counter_reset_aarch64(uvm_nano):
574574
snap_editor = host.get_binary("snapshot-editor")
575575

576576
cntpct_el0 = hex(0x603000000013DF01)
577-
# If a CPU runs at 3GHz, it will have a counter value of 1_000_000_000
578-
# in 1/3 of a second. The host surely will run for more than 1/3 second before
577+
# If a CPU runs at 3GHz, it will have a counter value of 8_000_000_000
578+
# in 2.66 seconds. The host surely will run for more than 2.66 seconds before
579579
# executing this test.
580-
max_value = 800_000_000
580+
max_value = 8_000_000_000
581581

582582
cmd = [
583583
str(snap_editor),

0 commit comments

Comments
 (0)