-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush> test fail #60480
Comments
Tagging subscribers to this area: @safern, @tarekgh Issue DetailsDescriptionSystem.Drawing.Tests.PenTests.Ctor_Brush_Width test fail on Russian Windows with next logs:
Reproduction StepsRun tests on Russian Windows 10. Expected behaviorPassed tests. Actual behaviorFailed tests. Regression?Are test data correct for all windows? yield return new object[] { new SolidBrush(Color.Red), 0, PenType.SolidColor };
yield return new object[] { new SolidBrush(Color.Red), -1, PenType.SolidColor };
yield return new object[] { new SolidBrush(Color.Red), float.NegativeInfinity, PenType.SolidColor }; Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
We just call int status = Gdip.GdipCreatePen2(new HandleRef(brush, brush.NativeBrush),
width,
(int)GraphicsUnit.World,
out pen); including checking the return code, then read it back var width = new float[] { 0 };
int status = Gdip.GdipGetPenWidth(new HandleRef(this, NativePen), width); and again throw if it returns other than OK. Seems a Windows issue. Apparently this is only happening for those invalid width values, and passing for the valid ones. So it seems no big deal. My suggestion is to just disable the invalid ones ( |
Do you suggest disabling the invalid ones for non-English for all OS or Windows only? |
Description
System.Drawing.Tests.PenTests.Ctor_Brush_Width<SolidBrush>
test fail on Russian Windows whenSolidBrush
width < 1 with next logs:Reproduction Steps
Run tests on Russian Windows 10.
Expected behavior
Passed tests.
Actual behavior
Failed tests.
Regression?
Are test data correct for all windows?
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: