Fix image_extent test to handle OOM errors
authorAlex Walters <alex.walters@imgtec.com>
Tue, 11 Jun 2019 15:42:33 +0000 (16:42 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 12 Jun 2019 11:04:55 +0000 (07:04 -0400)
commitc7c82722f91037f2eb92d99996fb90692c57e503
treedbcf3218a69819b6a84f588386897af776642c51
parent6c82a4c8e26903f2f764344b1c1ff677338796cd
Fix image_extent test to handle OOM errors

The image_extent tests attempt to create a window with the maximum
supported extents, though it is not always possible to create such
a window due to platform memory constraints.

As long as the error was an out of memory error, allow the test to
pass. This fix only applies to the image_extent sub-test.

Affects:

dEQP-VK.wsi.*.swapchain.create.image_extent

Components: Vulkan

VK-GL-CTS issue: 1780

Change-Id: I5ac5439417424d101f6dc8d4f92da79b8fda2313
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp