tests: assert vkWaitForFences result
Assert that vkWaitForFences returns VK_SUCCESS in
TwoQueueSubmitsOneQueueNullQueueSubmitWithFence .
If that call fails then later calls make otherwise unexplained
validation callbacks. An assert clears up the mystery.
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 0197969..f86d173 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -4501,7 +4501,9 @@
vkQueueSubmit(m_device->m_queue, 0, NULL, fence);
- vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX);
+ VkResult err =
+ vkWaitForFences(m_device->device(), 1, &fence, VK_TRUE, UINT64_MAX);
+ ASSERT_VK_SUCCESS(err);
vkDestroyFence(m_device->device(), fence, nullptr);
vkFreeCommandBuffers(m_device->device(), command_pool, 2,