winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Unstable unit test: System.Windows.Forms.Tests.CheckBoxRendererTests.CheckBoxRenderer_DrawCheckBox_OverloadWithSizeAndText

Open LeafShi1 opened this issue 1 year ago • 0 comments

Related https://github.com/dotnet/winforms/issues/11227

Test

System.Windows.Forms.Tests.CheckBoxRendererTests.CheckBoxRenderer_DrawCheckBox_OverloadWithSizeAndText

Issue description

The case failed in PR build, the failed scenario:

  • System.Windows.Forms.Tests.CheckBoxRendererTests.CheckBoxRenderer_DrawCheckBox_OverloadWithSizeAndText(cBState: CheckedNormal)

Error Message:

  • In X86 unit:

    • SkipTypesValidator did not receive expected records

Stack trace:

 at System.Windows.Forms.Metafiles.EmfValidator.Validate(EmfScope emf, DeviceContextState state, IEmfValidator[] validationSteps) in /_/src/System.Windows.Forms.Primitives/tests/TestUtilities/Metafiles/Validators/EmfValidator.cs:line 58
   at System.Windows.Forms.Tests.CheckBoxRendererTests.CheckBoxRenderer_DrawCheckBox_OverloadWithSizeAndText(CheckBoxState cBState) in /_/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/CheckBoxRendererTests.cs:line 61
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

LeafShi1 avatar Jun 06 '24 06:06 LeafShi1