Skip to content

Commit

Permalink
tests: Fix ASAN error in SwapchainMaintenance1ExtensionRelease
Browse files Browse the repository at this point in the history
Apparently swapchain_images.size() can sometimes be > 1
  • Loading branch information
jeremyg-lunarg authored and spencer-lunarg committed Jan 16, 2025
1 parent 5a1d4c8 commit 711f416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/wsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2443,7 +2443,7 @@ TEST_F(NegativeWsi, SwapchainMaintenance1ExtensionRelease) {
uint32_t release_index = 0;
VkReleaseSwapchainImagesInfoEXT release_info = vku::InitStructHelper();
release_info.swapchain = m_swapchain;
release_info.imageIndexCount = static_cast<uint32_t>(swapchain_images.size());
release_info.imageIndexCount = 1;
release_info.pImageIndices = &release_index;
m_errorMonitor->SetAllowedFailureMsg("VUID-VkReleaseSwapchainImagesInfoEXT-pImageIndices-07785");
m_errorMonitor->SetDesiredError("VUID-VkReleaseSwapchainImagesInfoEXT-pImageIndices-07786");
Expand Down

0 comments on commit 711f416

Please sign in to comment.