Destroying objects can be slow on certain implementations and may lead
to watchdog timeouts.
Bug:
28436275
Bug:
28052337
Change-Id: I831062dca7caffc3761750a1a2ce7b21b53be9e9
context.getTestContext().touchWatchdog();
}
+ // Destroy objects one by one and touch watchdog periodically as
+ // cleaning up resources is very costly on certain implementations.
+ for (deUint32 ndx = 0; ndx < numObjects; ndx++)
+ {
+ objects[ndx].clear();
+
+ if ((ndx > 0) && ((ndx % watchdogInterval) == 0))
+ context.getTestContext().touchWatchdog();
+ }
+
objects.clear();
return tcu::TestStatus::pass("Ok");