Skip to contentSkip to conversation

tests/qtest: remove trace output from k230 watchdog test

PATCH Applied Chao Liu 3 participants 3 messages Aug 13 – Aug 14

lore
Share & tools
lore

Chao Liu

author
#0 lore raw

PATCH 1/1 tests/qtest: remove trace output from k230 watchdog test

The interrupt mode test does not depend on trace output, but passes a trace file to QEMU. This makes startup fail when QEMU is built without the log or simple trace backend, so qtest cannot connect.

Drop the unnecessary trace option.

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4126

---
 tests/qtest/k230-wdt-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/k230-wdt-test.c +1 -1
index c8eaeaf1ae..b1131f42e3 100644
@@ -76,7 +76,7 @@ static void test_counter_restart(void)
 
 static void test_interrupt_mode(void)
 {
-    QTestState *qts = qtest_init("-machine k230 --trace k230_*,file=k230.log");
+    QTestState *qts = qtest_init("-machine k230");
 
     /* Set interrupt mode and enable watchdog */
     qtest_writel(qts, WDT_BASE + K230_WDT_CR,
Signature · 1 line
2.54.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Chao Liu

The interrupt mode test does not depend on trace output, but passes a trace file to QEMU. This makes startup fail when QEMU is built without the log or simple trace backend, so qtest cannot connect.

Quoted 9 lines

Drop the unnecessary trace option.

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4126

---
 tests/qtest/k230-wdt-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Applied
#2 lore raw
In reply to Chao Liu
Quoted 10 lines · Chao Liu

The interrupt mode test does not depend on trace output, but passes a trace file to QEMU. This makes startup fail when QEMU is built without
the log or simple trace backend, so qtest cannot connect.

Drop the unnecessary trace option.

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4126

Thanks!

Applied to riscv-to-apply.next

Alistair

Quoted 19 lines

---
 tests/qtest/k230-wdt-test.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/k230-wdt- renamed from tests/qtest/k230-wdt-test.c +0 -0

test.c
index c8eaeaf1ae..b1131f42e3 100644

tests/qtest/k230-wdt-test.c +0 -0
@@ -76,7 +76,7 @@ static void test_counter_restart(void)


 static void test_interrupt_mode(void)
 {
-    QTestState *qts = qtest_init("-machine k230 --trace k230_*,file=k230.log");
+    QTestState *qts = qtest_init("-machine k230");
     /* Set interrupt mode and enable watchdog */ qtest_writel(qts, WDT_BASE + K230_WDT_CR,