dotnet / dotnet/winforms

System.Drawing.Common.Tests fails during libraries test run

Open
#8,845 6 comments 0 reactions 0 assignees View on GitHub
area-System.Drawing disabled-test
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

Found while running all tests in libraries, running tests manually from the individual project also fails.
```
System.Drawing.Tests.BitmapTests.SaveWmfAsPngDoesntChangeImageBoundaries [FAIL]
Assert.Equal() Failure
↓ (pos 19)
Expected: [..., 0, 1, 68, 0, 0, ...]
Actual: [..., 0, 1, 149, 0, 0, ...]
↑ (pos 19)
Stack Trace:
D:\dotnet\runtime\src\libraries\System.Drawing.Common\tests\BitmapTests.cs(821,0): at System.Drawing.Tests.BitmapTests.SaveWmfAsPngDoesntChangeImageBoundaries()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
D:\dotnet\runtime\src\coreclr\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs(387,0): at System.Reflection.RuntimeMethodInfo.InvokeNonEmitUnsafe(Object obj, IntPtr* arguments, Span`1 argsForTemporaryMonoSupport, BindingFlags invokeAttr)
```
Failing with clean build having no any changes

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.