diff options
author | Jens Peters <jp7677@gmail.com> | 2022-02-06 21:31:15 +0300 |
---|---|---|
committer | Jens Peters <jp7677@gmail.com> | 2022-02-06 21:31:15 +0300 |
commit | bef3c94f46fec7da2058e13ef35aef600359d827 (patch) | |
tree | e8241440d07269cce7c24bdad7ee45a4ec829b55 | |
parent | ec8413d1d42d0fc9330a2fe1822da2d228001da2 (diff) |
tests: Improve test names
-rw-r--r-- | tests/nvapi_d3d.cpp | 2 | ||||
-rw-r--r-- | tests/nvapi_d3d11.cpp | 2 | ||||
-rw-r--r-- | tests/nvapi_d3d12.cpp | 6 | ||||
-rw-r--r-- | tests/nvapi_sysinfo.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/nvapi_d3d.cpp b/tests/nvapi_d3d.cpp index f70789a..9d61c72 100644 --- a/tests/nvapi_d3d.cpp +++ b/tests/nvapi_d3d.cpp @@ -21,7 +21,7 @@ TEST_CASE("D3D methods succeed", "[.d3d]") { REQUIRE(NvAPI_D3D_BeginResourceRendering(&unknown, NVDX_ObjectHandle(), 0) == NVAPI_OK); } - SECTION("BeginResourceRendering returns OK") { + SECTION("EndResourceRendering returns OK") { REQUIRE(NvAPI_D3D_EndResourceRendering(&unknown, NVDX_ObjectHandle(), 0) == NVAPI_OK); } diff --git a/tests/nvapi_d3d11.cpp b/tests/nvapi_d3d11.cpp index 4bc377c..ee5ab82 100644 --- a/tests/nvapi_d3d11.cpp +++ b/tests/nvapi_d3d11.cpp @@ -175,7 +175,7 @@ TEST_CASE("D3D11 methods succeed", "[.d3d11]") { REQUIRE(deviceRefCount == 0); } - SECTION("(NvAPI_D3D11_)CreateUnorderedAccessView/CreateShaderResourceView/GetResourceGPUVirtualAddress/GetResourceGPUVirtualAddressEx/GetCudaTextureObject/CreateSamplerState without extended DXVK interface returns error") { + SECTION("CreateUnorderedAccessView/CreateShaderResourceView/GetResourceGPUVirtualAddress/GetResourceGPUVirtualAddressEx/GetCudaTextureObject/CreateSamplerState without extended DXVK interface returns error") { ALLOW_CALL(device, QueryInterface(ID3D11VkExtDevice1::guid, _)) .RETURN(E_NOINTERFACE); ALLOW_CALL(context, QueryInterface(ID3D11VkExtContext1::guid, _)) diff --git a/tests/nvapi_d3d12.cpp b/tests/nvapi_d3d12.cpp index 24db110..27d45c1 100644 --- a/tests/nvapi_d3d12.cpp +++ b/tests/nvapi_d3d12.cpp @@ -112,7 +112,7 @@ TEST_CASE("D3D12 methods succeed", "[.d3d12]") { REQUIRE(supported == false); } - SECTION("NvAPI_D3D12_GetGraphicsCapabilities returns OK") { + SECTION("GetGraphicsCapabilities succeeds") { auto dxgiFactory = std::make_unique<DXGIFactory1Mock>(); auto vulkan = std::make_unique<VulkanMock>(); auto nvml = std::make_unique<NvmlMock>(); @@ -136,7 +136,7 @@ TEST_CASE("D3D12 methods succeed", "[.d3d12]") { ALLOW_CALL(device, GetAdapterLuid(_)) .LR_RETURN(luid); - SECTION("NvAPI_D3D12_GetGraphicsCapabilities without matching adapter returns OK with sm_0") { + SECTION("GetGraphicsCapabilities without matching adapter returns OK with sm_0") { SetupResourceFactory(std::move(dxgiFactory), std::move(vulkan), std::move(nvml)); REQUIRE(NvAPI_Initialize() == NVAPI_OK); @@ -148,7 +148,7 @@ TEST_CASE("D3D12 methods succeed", "[.d3d12]") { REQUIRE(deviceRefCount == 0); } - SECTION("NvAPI_D3D12_GetGraphicsCapabilities returns OK with valid SM") { + SECTION("GetGraphicsCapabilities returns OK with valid SM") { struct Data {VkDriverId driverId; std::string extensionName; uint16_t expectedMajorSMVersion; uint16_t expectedMinorSMVersion;}; auto args = GENERATE( Data{VK_DRIVER_ID_NVIDIA_PROPRIETARY, VK_KHR_FRAGMENT_SHADING_RATE_EXTENSION_NAME, 8, 6}, diff --git a/tests/nvapi_sysinfo.cpp b/tests/nvapi_sysinfo.cpp index 001ee81..c51c559 100644 --- a/tests/nvapi_sysinfo.cpp +++ b/tests/nvapi_sysinfo.cpp @@ -12,7 +12,7 @@ TEST_CASE("GetErrorMessage returns OK", "[.sysinfo]") { REQUIRE(strcmp(desc, "NVAPI_NVIDIA_DEVICE_NOT_FOUND") == 0); } -TEST_CASE("Initialize succeed", "[.sysinfo]") { +TEST_CASE("Initialize succeeds", "[.sysinfo]") { auto dxgiFactory = std::make_unique<DXGIFactory1Mock>(); auto vulkan = std::make_unique<VulkanMock>(); auto nvml = std::make_unique<NvmlMock>(); |