dotnet / dotnet/winforms

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

Open
#11,496 0 comments 0 reactions 0 assignees View on GitHub
disabled-test test-bug
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

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](https://dev.azure.com/dnceng-public/public/_build/results?buildId=696014&view=ms.vss-test-web.build-test-results-tab&runId=17299362&resultId=110349), 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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.