tests: Fix ResetEventThenSet to be a negative test
Make it a negative test that resets in the command buffer and then sets from
the CPU without synchronization. Also don't hang the GPU by waiting for the
event that never gets set.
Change-Id: I70acf0068ee9cb68659f51ad270878d7c33d8738
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 6c6235e..dccefb8 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -17313,11 +17313,9 @@
m_errorMonitor->VerifyNotFound();
}
-TEST_F(VkPositiveLayerTest, ResetEventThenSet) {
+TEST_F(VkLayerTest, ResetEventThenSet) {
TEST_DESCRIPTION("Reset an event then set it after the reset has been submitted.");
- m_errorMonitor->ExpectSuccess();
-
ASSERT_NO_FATAL_FAILURE(InitState());
VkEvent event;
VkEventCreateInfo event_create_info{};
@@ -17348,8 +17346,6 @@
vkBeginCommandBuffer(command_buffer, &begin_info);
vkCmdResetEvent(command_buffer, event, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT);
- vkCmdWaitEvents(command_buffer, 1, &event, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, 0,
- nullptr, 0, nullptr, 0, nullptr);
vkEndCommandBuffer(command_buffer);
}
{