diff options
author | Jens Peters <jp7677@gmail.com> | 2021-09-22 22:40:10 +0300 |
---|---|---|
committer | Jens Peters <jp7677@gmail.com> | 2021-09-22 22:50:25 +0300 |
commit | 851ef080e188a8fb291788acb50fc548507b71f7 (patch) | |
tree | 28027eaef83bedd39e08c179afe1e2cbdb6ebf4c | |
parent | deec9da5946a9eb976028f5d6e1db5c494db749b (diff) |
tests: Add comment about test order
-rw-r--r-- | tests/nvapi_d3d11.cpp | 4 | ||||
-rw-r--r-- | tests/nvapi_d3d12.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/nvapi_d3d11.cpp b/tests/nvapi_d3d11.cpp index 08bcff0..6115971 100644 --- a/tests/nvapi_d3d11.cpp +++ b/tests/nvapi_d3d11.cpp @@ -53,8 +53,6 @@ TEST_CASE("D3D11 methods succeed", "[.d3d11]") { .LR_SIDE_EFFECT(*_1 = &device) .LR_SIDE_EFFECT(deviceRefCount++); - // Test failing scenarios first to avoid any interference from caching of extension support - SECTION("D3D11 methods without DXVK return error") { ALLOW_CALL(device, QueryInterface(ID3D11VkExtDevice::guid, _)) .RETURN(E_NOINTERFACE); @@ -115,6 +113,8 @@ TEST_CASE("D3D11 methods succeed", "[.d3d11]") { REQUIRE(contextRefCount == 0); } + // Test failing scenarios first because caches won't be reset between tests (we don't cache negatives) + SECTION("IsNvShaderExtnOpCodeSupported returns OK") { bool supportedForDevice = true; bool supportedForContext = true; diff --git a/tests/nvapi_d3d12.cpp b/tests/nvapi_d3d12.cpp index aecef09..0a41570 100644 --- a/tests/nvapi_d3d12.cpp +++ b/tests/nvapi_d3d12.cpp @@ -93,6 +93,8 @@ TEST_CASE("D3D12 methods succeed", "[.d3d12]") { REQUIRE(commandListRefCount == 0); } + // Test failing scenarios first because caches won't be reset between tests (we don't cache negatives) + SECTION("IsNvShaderExtnOpCodeSupported with device returns OK") { auto supported = true; REQUIRE(NvAPI_D3D12_IsNvShaderExtnOpCodeSupported(&device, 1U, &supported) == NVAPI_OK); |