tests: Wait idle instead of ignoring errors
authorTobin Ehlis <tobine@google.com>
Thu, 1 Sep 2016 15:50:06 +0000 (08:50 -0700)
committerTobin Ehlis <tobine@google.com>
Thu, 8 Sep 2016 15:21:49 +0000 (09:21 -0600)
Prior to destroying objects wait for cmd buffer to complete to avoid errors rather than
ignoring the errors.

tests/layer_validation_tests.cpp

index ec659ec..9bc69df 100644 (file)
@@ -14100,7 +14100,7 @@ TEST_F(VkLayerTest, InUseDestroyedSignaled) {
     vkDestroyFence(m_device->device(), fence, nullptr);
     m_errorMonitor->VerifyFound();
 
-    m_errorMonitor->SetDesiredFailureMsg(0, "");
+    vkQueueWaitIdle(m_device->m_queue);
     vkDestroySemaphore(m_device->device(), semaphore, nullptr);
     vkDestroyFence(m_device->device(), fence, nullptr);
     vkDestroyEvent(m_device->device(), event, nullptr);