Fix --deqp-runmode=txt-caselist option for ES2.0 devices
authorJames Hauxwell <hauxwell@broadcom.com>
Wed, 20 May 2020 14:45:31 +0000 (15:45 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 9 Jun 2020 12:42:37 +0000 (08:42 -0400)
Change allows the iteration of the caselist to terminate without error
when ES3.0 is not present on the device under test.

Components: framework

VK-GL-CTS issue: 2375

Change-Id: I47bee9daaab6a6b48eddf6155a4a1ed5fddfde65

framework/common/tcuTestHierarchyUtil.cpp

index 9fa7bb6..eaa391c 100644 (file)
@@ -203,7 +203,14 @@ void writeTxtCaselistsToFiles (TestPackageRoot& root, TestContext& testCtx, cons
 
                print("Writing test cases from '%s' to file '%s'..\n", pkgName, filename.c_str());
 
-               iter.next();
+               try
+               {
+                       iter.next();
+               }
+               catch (const tcu::NotSupportedError& e)
+               {
+                       return;
+               }
 
                while (iter.getNode()->getNodeType() != NODETYPE_PACKAGE)
                {