Skip to contentSkip to conversation

tests: fix comment declaring runtime in rv64 interruptedmemory test

PATCH In review Julian Ganz 2 participants 2 messages Dec 27, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: fix comment declaring runtime in rv64 interruptedmemory test

The test attempts to trigger a regression for arount 30s. However, a comment just before the computation of the target wall clock time falsly declares the run time to be around 60s.

This was the case already when we introduced the test in

5241645c47a9987f4fcc65bab303a444966b7942
(tests: add test with interrupted memory accesses on rv64)

---
 tests/tcg/riscv64/interruptedmemory.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/riscv64/interruptedmemory.S +1 -1
index cd9073ee31..c154f93839 100644
@@ -25,7 +25,7 @@ _start:
 	li	a0, 0x03	# 8N1, DLAB=0
 	sb	a0, 3(t1)
 
-	# Run test for around 60s
+	# Run test for around 30s
 	call	rtc_get
 	li	t0, 30
 	slli	t0, t0, 30 # Approx. 10e9 ns
Signature · 1 line
2.51.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Julian Ganz

The test attempts to trigger a regression for arount 30s. However, a comment just before the computation of the target wall clock time falsly declares the run time to be around 60s.

This was the case already when we introduced the test in

5241645c47a9987f4fcc65bab303a444966b7942
(tests: add test with interrupted memory accesses on rv64)

---

Quoted 16 lines
  tests/tcg/riscv64/interruptedmemory.S | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/riscv64/interruptedmemory.S +1 -1
index cd9073ee31..c154f93839 100644
@@ -25,7 +25,7 @@ _start:
  	li	a0, 0x03	# 8N1, DLAB=0
  	sb	a0, 3(t1)
 
-	# Run test for around 60s
+	# Run test for around 30s
  	call	rtc_get
  	li	t0, 30
  	slli	t0, t0, 30 # Approx. 10e9 ns