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)
This commit is contained in:
Francisco Casas 2024-03-21 20:19:02 -03:00 committed by Alexandre Julliard
parent 9a90b9591c
commit b1eaf8327b
Notes: Alexandre Julliard 2024-03-27 23:08:39 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/738

View File

@ -174,7 +174,11 @@ BEGIN {
}
/: Assertion .* failed\./ {
print "[AF]" $0
print "# [AF] <fade>" $0 "<reset>"
}
/: Aborting, reached unreachable code\./ {
print "# [AF] <fade>" $0 "<reset>"
}
EOF