From 976b3c94197131c97e65a32f08039bfad7f949cc Mon Sep 17 00:00:00 2001 From: James Hauxwell Date: Wed, 20 May 2020 15:45:31 +0100 Subject: [PATCH] Fix --deqp-runmode=txt-caselist option for ES2.0 devices 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/framework/common/tcuTestHierarchyUtil.cpp b/framework/common/tcuTestHierarchyUtil.cpp index 9fa7bb6..eaa391c 100644 --- a/framework/common/tcuTestHierarchyUtil.cpp +++ b/framework/common/tcuTestHierarchyUtil.cpp @@ -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) { -- 2.7.4