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 <cgmeiner@igalia.com>
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39016>
This commit is contained in:
Christian Gmeiner
2025-11-30 00:23:10 +01:00
committed by Marge Bot
parent b3c983b8dd
commit 187233339a

View File

@@ -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};