Register d3d12_present_test with ctest

#908 brought the M0 present test (70 frames to a window, then a resize) but no add_test ran it, which
test_ctest_registration catches. It is registered like its neighbours (exit 77 is a skip) and passes on an
RTX 4060 Ti.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ItsNotRexed
2026-11-22 05:56:34 -05:00
parent b69eb302d0
commit c2967a5e60

View File

@ -933,6 +933,8 @@ if(TARGET Vulkan::Headers)
target_link_libraries(d3d12_present_test PRIVATE gta6rt_d3d12_com user32 gdi32)
target_compile_definitions(d3d12_present_test PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX)
target_compile_options(d3d12_present_test PRIVATE /W4 /permissive- /utf-8)
add_test(NAME d3d12_present COMMAND d3d12_present_test)
set_tests_properties(d3d12_present PROPERTIES SKIP_RETURN_CODE 77)
# PresentX and the frame events on the Vulkan device (shims/xbox_present.h), checked on swapchain pixels.
add_executable(xbox_present_test test/xbox_present_test.cpp)