From b1eaf8327bf59b516f80e232e86332473ed97edc Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Thu, 21 Mar 2024 20:19:02 -0300 Subject: [PATCH] tests/test-driver: Print line where vkd3d_unreachable() was hit. With this, a test that fails because vkd3d_unreacheable() was hit, will now display the error line. FAIL: tests/hlsl/some-test.shader_test (SM4.0-SM5.1)OpenGL/SPIR-V 43[XF] 79[XF] 126[XF] 149[XF] 159[XF] [AF] vkd3d/libs/vkd3d-shader/hlsl.c:246: Aborting, reached unreachable code. [SIGABRT] Aborted (core dumped) --- tests/test-driver.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test-driver.sh b/tests/test-driver.sh index 514e38d3..869cc4be 100755 --- a/tests/test-driver.sh +++ b/tests/test-driver.sh @@ -174,7 +174,11 @@ BEGIN { } /: Assertion .* failed\./ { - print "[AF]" $0 + print "# [AF] " $0 "" +} + +/: Aborting, reached unreachable code\./ { + print "# [AF] " $0 "" } EOF