Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests Fails on Android #50946

Closed
Tracked by #64602
mdh1418 opened this issue Apr 8, 2021 · 2 comments · Fixed by #56635
Closed
Tracked by #64602

System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests Fails on Android #50946

mdh1418 opened this issue Apr 8, 2021 · 2 comments · Fixed by #56635

Comments

@mdh1418
Copy link
Member

mdh1418 commented Apr 8, 2021

System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests
System.Xml.Tests.TCValidateWhitespace_String.WhitespaceInEmptyContent__Invalid
System.Xml.Tests.TCValidateAttribute_String.ValidateSameAttributeTwice
System.Xml.Tests.TCValidateText.EmptyContent
System.Xml.Tests.TCValidateText.ElementOnlyContent
System.Xml.Tests.TCValidateText_String.EmptyContent
System.Xml.Tests.TCValidateText_String.ElementOnlyContent
System.Xml.Tests.TCXmlResolver.SetResolverToCustomValidateSomethingSetResolverToNullThenVerify
System.Xml.Tests.TCValidateAttribute.ValidateSameAttributeTwice
System.Xml.Tests.TCEndValidation.TestForRootLevelIdentityConstraints_Valid_IDREFMissingInvalid_IgnoreIdentityConstraintsIsSetInvalid
System.Xml.Tests.TCSkipToEndElement.CheckThatSkipToEndElementJumpsIntoRightContext
System.Xml.Tests.TCValidateWhitespace.WhitespaceInEmptyContent__Invalid
System.Xml.Tests.TCValidateEndElement.CallValidateTextThenValidateEndElementWithTypedValue
System.Xml.Tests.TCValidateEndElement.TestForIdentityConstraints_Valid_InvalidDuplicateKey_InvalidKeyRefMissing_InvalidIdentitiConstraintIsSet
System.Xml.Tests.TCValidateEndElement.CallValidateEndElementWithTypedValueForComplexContent
System.Xml.Tests.TCValidateEndOfAttributes.CallWithoutValidationOfRequiredAttribute
System.Xml.Tests.TCValidateElement.PassInvalidName_First_Second_Overload
System.Xml.Tests.TCValidateElement.CallWith_Null_False_XsiNil
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidSchemaLocationIsProvided
System.Xml.Tests.TCValidateElement.CheckSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsNotSet
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenUndefinedElementIsValidatedWithLaxValidation
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidNoNamespaceSchemaLocationIsProvided
System.Xml.Tests.TCValidateElement.ProvideInvalidXsiType
System.Xml.Tests.TCValidateElement.CheckNoNamespaceSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsSet
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type
System.Xml.Tests.TCInitialize.InitializeWithTypeValidate_OtherType_Attribute

System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests.dll   Failed: 34

Test collection for System.Xml.Tests.TCValidateWhitespace_String
System.Xml.Tests.TCValidateWhitespace_String.WhitespaceInEmptyContent__Invalid
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateAttribute_String
System.Xml.Tests.TCValidateAttribute_String.ValidateSameAttributeTwice
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateText
System.Xml.Tests.TCValidateText.EmptyContent
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateText.ElementOnlyContent
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateText_String
System.Xml.Tests.TCValidateText_String.EmptyContent
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateText_String.ElementOnlyContent
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCXmlResolver
System.Xml.Tests.TCXmlResolver.SetResolverToCustomValidateSomethingSetResolverToNullThenVerify
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateAttribute
System.Xml.Tests.TCValidateAttribute.ValidateSameAttributeTwice
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCEndValidation
System.Xml.Tests.TCEndValidation.TestForRootLevelIdentityConstraints_Valid_IDREFMissingInvalid_IgnoreIdentityConstraintsIsSetInvalid(validity: \"missing\")
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCSkipToEndElement
System.Xml.Tests.TCSkipToEndElement.CheckThatSkipToEndElementJumpsIntoRightContext
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateWhitespace
System.Xml.Tests.TCValidateWhitespace.WhitespaceInEmptyContent__Invalid
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateEndElement
System.Xml.Tests.TCValidateEndElement.CallValidateTextThenValidateEndElementWithTypedValue
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateEndElement.TestForIdentityConstraints_Valid_InvalidDuplicateKey_InvalidKeyRefMissing_InvalidIdentitiConstraintIsSet(constrType: \"duplicate\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateEndElement.TestForIdentityConstraints_Valid_InvalidDuplicateKey_InvalidKeyRefMissing_InvalidIdentitiConstraintIsSet(constrType: \"missing\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateEndElement.CallValidateEndElementWithTypedValueForComplexContent
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateEndOfAttributes
System.Xml.Tests.TCValidateEndOfAttributes.CallWithoutValidationOfRequiredAttribute
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateElement
System.Xml.Tests.TCValidateElement.PassInvalidName_First_Second_Overload(overload: \"second\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.PassInvalidName_First_Second_Overload(overload: \"first\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CallWith_Null_False_XsiNil(xsiNil: null)
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CallWith_Null_False_XsiNil(xsiNil: \"false\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidSchemaLocationIsProvided
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsNotSet(allFlags: ProcessInlineSchema | ReportValidationWarnings | ProcessIdentityConstraints)
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenUndefinedElementIsValidatedWithLaxValidation
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidNoNamespaceSchemaLocationIsProvided
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.ProvideInvalidXsiType
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckNoNamespaceSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsSet(allFlags: ProcessInlineSchema | ReportValidationWarnings | ProcessIdentityConstraints)
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCInitialize
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute(typeToValidate: \"other\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute(typeToValidate: \"type\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute(typeToValidate: \"attribute\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type(typeToValidate: \"type\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type(typeToValidate: \"other\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type(typeToValidate: \"element\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithTypeValidate_OtherType_Attribute(typeToValidate: \"other\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithTypeValidate_OtherType_Attribute(typeToValidate: \"attribute\")
    System.Xml.Tests.VerifyException : Mismatch in error message
@mdh1418 mdh1418 added this to the 6.0.0 milestone Apr 8, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Xml untriaged New issue has not been triaged by the area owner labels Apr 8, 2021
@ghost
Copy link

ghost commented Apr 8, 2021

Tagging subscribers to this area: @buyaa-n, @krwq
See info in area-owners.md if you want to be subscribed.

Issue Details

System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests
System.Xml.Tests.TCValidateWhitespace_String.WhitespaceInEmptyContent__Invalid
System.Xml.Tests.TCValidateAttribute_String.ValidateSameAttributeTwice
System.Xml.Tests.TCValidateText.EmptyContent
System.Xml.Tests.TCValidateText.ElementOnlyContent
System.Xml.Tests.TCValidateText_String.EmptyContent
System.Xml.Tests.TCValidateText_String.ElementOnlyContent
System.Xml.Tests.TCXmlResolver.SetResolverToCustomValidateSomethingSetResolverToNullThenVerify
System.Xml.Tests.TCValidateAttribute.ValidateSameAttributeTwice
System.Xml.Tests.TCEndValidation.TestForRootLevelIdentityConstraints_Valid_IDREFMissingInvalid_IgnoreIdentityConstraintsIsSetInvalid
System.Xml.Tests.TCSkipToEndElement.CheckThatSkipToEndElementJumpsIntoRightContext
System.Xml.Tests.TCValidateWhitespace.WhitespaceInEmptyContent__Invalid
System.Xml.Tests.TCValidateEndElement.CallValidateTextThenValidateEndElementWithTypedValue
System.Xml.Tests.TCValidateEndElement.TestForIdentityConstraints_Valid_InvalidDuplicateKey_InvalidKeyRefMissing_InvalidIdentitiConstraintIsSet
System.Xml.Tests.TCValidateEndElement.CallValidateEndElementWithTypedValueForComplexContent
System.Xml.Tests.TCValidateEndOfAttributes.CallWithoutValidationOfRequiredAttribute
System.Xml.Tests.TCValidateElement.PassInvalidName_First_Second_Overload
System.Xml.Tests.TCValidateElement.CallWith_Null_False_XsiNil
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidSchemaLocationIsProvided
System.Xml.Tests.TCValidateElement.CheckSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsNotSet
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenUndefinedElementIsValidatedWithLaxValidation
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidNoNamespaceSchemaLocationIsProvided
System.Xml.Tests.TCValidateElement.ProvideInvalidXsiType
System.Xml.Tests.TCValidateElement.CheckNoNamespaceSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsSet
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type
System.Xml.Tests.TCInitialize.InitializeWithTypeValidate_OtherType_Attribute

System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests.dll   Failed: 34

Test collection for System.Xml.Tests.TCValidateWhitespace_String
System.Xml.Tests.TCValidateWhitespace_String.WhitespaceInEmptyContent__Invalid
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateAttribute_String
System.Xml.Tests.TCValidateAttribute_String.ValidateSameAttributeTwice
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateText
System.Xml.Tests.TCValidateText.EmptyContent
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateText.ElementOnlyContent
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateText_String
System.Xml.Tests.TCValidateText_String.EmptyContent
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateText_String.ElementOnlyContent
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCXmlResolver
System.Xml.Tests.TCXmlResolver.SetResolverToCustomValidateSomethingSetResolverToNullThenVerify
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateAttribute
System.Xml.Tests.TCValidateAttribute.ValidateSameAttributeTwice
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCEndValidation
System.Xml.Tests.TCEndValidation.TestForRootLevelIdentityConstraints_Valid_IDREFMissingInvalid_IgnoreIdentityConstraintsIsSetInvalid(validity: \"missing\")
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCSkipToEndElement
System.Xml.Tests.TCSkipToEndElement.CheckThatSkipToEndElementJumpsIntoRightContext
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateWhitespace
System.Xml.Tests.TCValidateWhitespace.WhitespaceInEmptyContent__Invalid
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateEndElement
System.Xml.Tests.TCValidateEndElement.CallValidateTextThenValidateEndElementWithTypedValue
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateEndElement.TestForIdentityConstraints_Valid_InvalidDuplicateKey_InvalidKeyRefMissing_InvalidIdentitiConstraintIsSet(constrType: \"duplicate\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateEndElement.TestForIdentityConstraints_Valid_InvalidDuplicateKey_InvalidKeyRefMissing_InvalidIdentitiConstraintIsSet(constrType: \"missing\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateEndElement.CallValidateEndElementWithTypedValueForComplexContent
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateEndOfAttributes
System.Xml.Tests.TCValidateEndOfAttributes.CallWithoutValidationOfRequiredAttribute
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCValidateElement
System.Xml.Tests.TCValidateElement.PassInvalidName_First_Second_Overload(overload: \"second\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.PassInvalidName_First_Second_Overload(overload: \"first\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CallWith_Null_False_XsiNil(xsiNil: null)
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CallWith_Null_False_XsiNil(xsiNil: \"false\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidSchemaLocationIsProvided
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsNotSet(allFlags: ProcessInlineSchema | ReportValidationWarnings | ProcessIdentityConstraints)
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenUndefinedElementIsValidatedWithLaxValidation
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckThatWarningOccursWhenInvalidNoNamespaceSchemaLocationIsProvided
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.ProvideInvalidXsiType
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCValidateElement.CheckNoNamespaceSchemaLocationIs_UsedWhenSpecified_NotUsedWhenFlagIsSet(allFlags: ProcessInlineSchema | ReportValidationWarnings | ProcessIdentityConstraints)
    System.Xml.Tests.VerifyException : Mismatch in error message

Test collection for System.Xml.Tests.TCInitialize
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute(typeToValidate: \"other\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute(typeToValidate: \"type\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithElementValidate_OtherElement_Type_Attribute(typeToValidate: \"attribute\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type(typeToValidate: \"type\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type(typeToValidate: \"other\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithAttributeValidate_OtherAttribute_Element_Type(typeToValidate: \"element\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithTypeValidate_OtherType_Attribute(typeToValidate: \"other\")
    System.Xml.Tests.VerifyException : Mismatch in error message
System.Xml.Tests.TCInitialize.InitializeWithTypeValidate_OtherType_Attribute(typeToValidate: \"attribute\")
    System.Xml.Tests.VerifyException : Mismatch in error message

<table>
  <tr>
    <th align="left">Author:</th>
    <td>mdh1418</td>
  </tr>
  <tr>
    <th align="left">Assignees:</th>
    <td>-</td>
  </tr>
  <tr>
    <th align="left">Labels:</th>
    <td>

`area-System.Xml`, `os-android`, `untriaged`

</td>
  </tr>
  <tr>
    <th align="left">Milestone:</th>
    <td>6.0.0</td>
  </tr>
</table>
</details>

@buyaa-n buyaa-n removed the untriaged New issue has not been triaged by the area owner label Apr 12, 2021
@steveisok
Copy link
Member

@mdh1418 These tests pass on Android and can be re-enabled.

@steveisok steveisok modified the milestones: 6.0.0, 7.0.0 Jul 30, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 30, 2021
steveisok pushed a commit that referenced this issue Jul 30, 2021
…ng improperly set (#56635)

Fixes #50576
Fixes #50881
Fixes #50916
Fixes #50917
Fixes #50918
Fixes #50919
Fixes #50927
Fixes #50928
Fixes #50944
Fixes #50945
Fixes #50946
Fixes #50947
Fixes #50948
Fixes #50999

When setting up functional tests for mobile, the feature switches being used for the tests were misplaced in a broader project, affecting the library tests and causing failures. After moving the feature switches to the scope of functional tests as done in #53253, these test suites no longer fail and can be re-enabled.
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 30, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
3 participants