tests: Don't try to use 2 queues when there is only one
Change-Id: Ibd5f88efec52095e523363371b030483c6971119
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 85d3318..8a9d4c8 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -1090,6 +1090,9 @@
TEST_DESCRIPTION("Two command buffers, each in a separate QueueSubmit call "
"submitted on separate queues followed by a QueueWaitIdle.");
+ if (m_device->queue_props->queueCount < 2)
+ return;
+
m_errorMonitor->ExpectSuccess();
VkSemaphore semaphore;
@@ -1193,6 +1196,9 @@
"submitted on separate queues, the second having a fence"
"followed by a QueueWaitIdle.");
+ if (m_device->queue_props->queueCount < 2)
+ return;
+
m_errorMonitor->ExpectSuccess();
VkFence fence;
@@ -1304,6 +1310,9 @@
"submitted on separate queues, the second having a fence"
"followed by two consecutive WaitForFences calls on the same fence.");
+ if (m_device->queue_props->queueCount < 2)
+ return;
+
m_errorMonitor->ExpectSuccess();
VkFence fence;
@@ -1414,6 +1423,9 @@
"submitted on separate queues, the second having a fence, "
"followed by a WaitForFences call.");
+ if (m_device->queue_props->queueCount < 2)
+ return;
+
m_errorMonitor->ExpectSuccess();
VkFence fence;