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

Unstable unit test: System.Windows.Forms.Tests.ImageCollectionTests.ImageCollection_Item_Get32bppColorDepth_Success #11226

Open
LeafShi1 opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
disabled-test Tracking tests that have been disabled to prevent run failures. test-bug Problem in test source code (most likely)

Comments

@LeafShi1
Copy link
Member

LeafShi1 commented Apr 17, 2024

Related #11227

Test

System.Windows.Forms.Tests.ImageCollectionTests.ImageCollection_Item_Get32bppColorDepth_Success(pixelFormat: Format1bppIndexed, pixel00Color: Color [Empty], givenPixel10Color: Color [Empty], expectedPixel10Color: Color [A=255, R=0, G=0, B=0])

Issue description

The case failed in PR build, the failure link:

Error Message:

  • In X64 unit:

    • Assert.Equal() Failure: Values differ
      Expected: Color [A=200, R=67, G=81, B=96]
      Actual: Color [A=200, R=85, G=104, B=123]
  • In X86 unit:

    • Assert.Equal() Failure: Values differ
      Expected: Color [A=200, R=66, G=81, B=95]
      Actual: Color [A=200, R=85, G=104, B=123]

Stack trace:

at System.Windows.Forms.Tests.ImageCollectionTests.ImageCollection_Item_Get32bppColorDepth_Success(PixelFormat pixelFormat, Color pixel00Color, Color givenPixel10Color, Color expectedPixel10Color) in /_/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ImageList.ImageCollectionTests.cs:line 210
at InvokeStub_ImageCollectionTests.ImageCollection_Item_Get32bppColorDepth_Success(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
@LeafShi1 LeafShi1 added the disabled-test Tracking tests that have been disabled to prevent run failures. label Apr 17, 2024
@LeafShi1 LeafShi1 self-assigned this Apr 17, 2024
@elachlan elachlan added the test-bug Problem in test source code (most likely) label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disabled-test Tracking tests that have been disabled to prevent run failures. test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

2 participants