diff options
| author | sanuk369 <224479491+quackottu@users.noreply.github.com> | 2026-11-22 09:56:28 +0530 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 00:33:45 -0500 |
| commit | 817a5e9f5e49d7e58eb8570a5a3be5aa129ef5a8 (patch) | |
| tree | d70eb265f6684143dde5904f880b5fa983d42a49 /runtime/test/d3d12_method_variants_test.cpp | |
| parent | b2dd57b2e824ebf150c9947f6811995fae4b8405 (diff) | |
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)
Diffstat (limited to 'runtime/test/d3d12_method_variants_test.cpp')
| -rw-r--r-- | runtime/test/d3d12_method_variants_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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> edge_answers(ID3D12Device10* device) { | |||
| 270 | 270 | ||
| 271 | int main() { | 271 | int main() { |
| 272 | vktest::Device d; | 272 | vktest::Device d; |
| 273 | EXPECT(d.create()); | 273 | const auto device_status = d.initialize(); |
| 274 | if (device_status == vktest::DeviceStatus::unavailable) return 77; // no Vulkan GPU: ctest skips | ||
| 275 | if (device_status != vktest::DeviceStatus::ready) return 1; | ||
| 274 | { | 276 | { |
| 275 | rt::d3d12::VulkanDeviceInfo info{}; | 277 | rt::d3d12::VulkanDeviceInfo info{}; |
| 276 | info.get_instance_proc = d.instance_proc; | 278 | info.get_instance_proc = d.instance_proc; |