Initialize variables for error tests
authorJames Helferty <jhelferty@nvidia.com>
Thu, 27 Jul 2017 15:37:55 +0000 (11:37 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 18 Aug 2017 08:13:22 +0000 (04:13 -0400)
commitc7ccf3136e3d62e6d310fb538eefe591c43c7942
tree1c14d08851a1c4f7c6011a14dcf2d1cba7f62560
parent91459cb30edf4ea279715f11e5aad57cfd6d94aa
Initialize variables for error tests

This set of tests intentionally provides erroneous call arguments in
order to generate GL errors. As a result, the GL functions' output
arguments won't always be written to. The problem is, we bounce these
functions through CallLogWrapper, which expects the output arguments
to have valid contents, and will attempt to log them to file,
potentially resulting in unexpected process termination.

This change initializes the output arguments beforehand to valid values
so that CallLogWrapper doesn't unintentionally access invalid memory.

VK-GL-CTS issue 603

Components: OpenGL

Affects:
* KHR-GLES31.core.program_interface_query.invalid-enum
* KHR-GLES31.core.program_interface_query.invalid-operation
* KHR-GLES31.core.program_interface_query.invalid-value
* KHR-GL43/44/45.program_interface_query.invalid-enum
* KHR-GL43/44/45.program_interface_query.invalid-operation
* KHR-GL43/44/45.program_interface_query.invalid-value

Change-Id: I5fae2d4505e9c70cbcb2fbd11bdf900c0b4c751a
external/openglcts/modules/gl/gl4cProgramInterfaceQueryTests.cpp