Add watchdog touches to dEQP-VK.api.descriptor_pool#repeated_reset_long
authorPierre Couillaud <pierre@broadcom.com>
Wed, 31 Oct 2018 11:57:40 +0000 (04:57 -0700)
committerChris Forbes <chrisforbes@google.com>
Mon, 12 Nov 2018 23:58:13 +0000 (18:58 -0500)
On some low-end devices, this test would hit the dEQP watchdog. Add some
watchdog touches to avoid this.

Google Bug: b/116847904
Component: Vulkan
Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
VK-GL-CTS Issue: 1464

Change-Id: I18181aa274ab1dc191b5f0acbb58b41465b5cdad

external/vulkancts/modules/vulkan/api/vktApiDescriptorPoolTests.cpp

index 8263a9d..726bbd9 100644 (file)
@@ -132,6 +132,7 @@ tcu::TestStatus resetDescriptorPoolTest (Context& context, deUint32 numIteration
 
                        for (deUint32 ndx = 0; ndx < numIterations; ++ndx)
                        {
+                               if (ndx % 1024 == 0) context.getTestContext().touchWatchdog();
                                // The test should crash in this loop at some point if there is a memory leak
                                VK_CHECK(vkd.allocateDescriptorSets(device, &descriptorSetInfo, &testSets[0]));
                                VK_CHECK(vkd.resetDescriptorPool(device, *descriptorPool, 0));