Skip to content

Commit

Permalink
tests: Move variable to inner scope
Browse files Browse the repository at this point in the history
IDE hint.
  • Loading branch information
jp7677 committed Jan 25, 2025
1 parent 7977a9d commit cc0f2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/nvapi_d3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ TEST_CASE("D3D Reflex/LatencyFleX depending methods succeed", "[.d3d]") {
D3DLowLatencyDeviceMock lowLatencyDevice;
DXGIDxvkAdapterMock* adapter = CreateDXGIDxvkAdapterMock();
DXGIOutput6Mock* output = CreateDXGIOutput6Mock();
auto lowLatencyDeviceRefCount = 0;

auto e = ConfigureDefaultTestEnvironment(*dxgiFactory, *vk, *nvml, *lfx, *adapter, *output);

Expand Down Expand Up @@ -276,6 +275,7 @@ TEST_CASE("D3D Reflex/LatencyFleX depending methods succeed", "[.d3d]") {
}

SECTION("Reflex depending methods succeed when D3DLowLatencyDevice is available") {
auto lowLatencyDeviceRefCount = 0;
ALLOW_CALL(unknown, QueryInterface(__uuidof(ID3DLowLatencyDevice), _))
.LR_SIDE_EFFECT(*_2 = static_cast<ID3DLowLatencyDevice*>(&lowLatencyDevice))
.LR_SIDE_EFFECT(lowLatencyDeviceRefCount++)
Expand Down

0 comments on commit cc0f2db

Please sign in to comment.