From 187233339ab0ee8fd437366441e7eccd83d134ba Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Sun, 30 Nov 2025 00:23:10 +0100 Subject: [PATCH] etnaviv: isa: Print parser error When a parsing test fails, output the actual error message to aid debugging. This makes it immediately clear why parsing failed instead of just showing that the test didn't succeed. Signed-off-by: Christian Gmeiner Reviewed-by: @LingMan Part-of: --- src/etnaviv/isa/tests/disasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etnaviv/isa/tests/disasm.cpp b/src/etnaviv/isa/tests/disasm.cpp index 87f25c9368f..0b2fed7de0d 100644 --- a/src/etnaviv/isa/tests/disasm.cpp +++ b/src/etnaviv/isa/tests/disasm.cpp @@ -74,7 +74,7 @@ TEST_P(DisasmTest, basicOpCodes) if (as.flags & FLAG_FAILING_PARSE) EXPECT_FALSE(result->success); else - EXPECT_TRUE(result->success); + EXPECT_TRUE(result->success) << "Parser error: " << result->error; if (result->success && !(as.flags & FLAG_FAILING_ASM)) { uint32_t encoded[4] = {0};