Ensure sync_fd tests use valid file descriptors
authorPeter Quayle <peter.quayle@imgtec.com>
Wed, 21 Feb 2018 15:34:55 +0000 (15:34 +0000)
committerPeter Quayle <peter.quayle@imgtec.com>
Mon, 26 Feb 2018 11:01:41 +0000 (11:01 +0000)
commit2fedbbe754cf55f423ae463086bc6f9e05ab0158
tree0abf821bc722a27c1af610b7b1a266eec64c6bf0
parentf86a754340b09117e1253395be675bea6cbdac2c
Ensure sync_fd tests use valid file descriptors

The external.*.sync_fd.* tests fail on some implementations
because vkGet*FdKHR may return -1 (meaning pre-signalled) instead
of a valid file descriptor.

Affects:

dEQP-VK.api.external.semaphore.sync_fd*
dEQP-VK.api.external.fence.sync_fd*

Components: Vulkan

VK-GL-CTS issue: 957

Change-Id: I91087db1595a19605956dad460caa344e850491e
external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp