From 817a5e9f5e49d7e58eb8570a5a3be5aa129ef5a8 Mon Sep 17 00:00:00 2001 From: sanuk369 <224479491+quackottu@users.noreply.github.com> Date: Sun, 22 Nov 2026 09:56:28 +0530 Subject: Tests: run the eight unregistered D3D12 GPU tests under ctest d3d12_clear, d3d12_com, d3d12_descriptor, d3d12_method_variants, d3d12_resource_desc, d3d12_sampler2, d3d12_typeless_rtv and d3d12_uav_clear were built but never added with add_test, so ctest and CI never ran them. Each now exits 77 when there is no Vulkan GPU (DeviceStatus::unavailable), as d3d12_vulkan_device_test does, and is registered with SKIP_RETURN_CODE 77. (cherry picked from commit 2af37e5da368dd130ba23db385e812635cb1a768) --- runtime/test/d3d12_method_variants_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/test/d3d12_method_variants_test.cpp') diff --git a/runtime/test/d3d12_method_variants_test.cpp b/runtime/test/d3d12_method_variants_test.cpp index 27916d092..832ec794e 100644 --- a/runtime/test/d3d12_method_variants_test.cpp +++ b/runtime/test/d3d12_method_variants_test.cpp @@ -270,7 +270,9 @@ std::vector edge_answers(ID3D12Device10* device) { int main() { vktest::Device d; - EXPECT(d.create()); + const auto device_status = d.initialize(); + if (device_status == vktest::DeviceStatus::unavailable) return 77; // no Vulkan GPU: ctest skips + if (device_status != vktest::DeviceStatus::ready) return 1; { rt::d3d12::VulkanDeviceInfo info{}; info.get_instance_proc = d.instance_proc; -- cgit v1.2.3