olabusayoT commented on code in PR #1301:
URL: https://github.com/apache/daffodil/pull/1301#discussion_r1764084126


##########
daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala:
##########
@@ -730,6 +740,16 @@ abstract class TestCase(testCaseXML: NodeSeq, val parent: 
DFDLTestSuite) {
   lazy val ignoreUnexpectedWarnings: Boolean =
     if (tcIgnoreUnexpectedWarnings == "") defaultIgnoreUnexpectedWarnings
     else tcIgnoreUnexpectedWarnings.toBoolean
+  lazy val tcIgnoreUnexpectedValidationErrors: String =
+    (testCaseXML \ "@ignoreUnexpectedValidationErrors").text
+  lazy val ignoreUnexpectedValidationErrors: Boolean =
+    if (
+      optExpectedValidationErrors.isDefined
+      && !optExpectedValidationErrors.get.exists(_.hasDiagnostics)
+    ) { // <tdml:validationErrors/>
+      false // ignore unexpected validation errors will be false if 
<tdml:validationErrors />

Review Comment:
   I ended up removing support for it, with a message about it being 
unsupported if `<tdml:validationErrors/>` is used



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to