Skip to content

System.Drawing.Tests.FontFamilyTests.Families_Get_ReturnsExpected failure on libgdiplus platforms #40937

@directhex

Description

@directhex

Mono and CoreCLR both fail near-identically on this test on Helix.

CoreCLR https://helix.dot.net/api/2019-06-17/jobs/4f122c80-6e43-48c3-9793-d5c72dc59bbd/workitems/System.Drawing.Common.Tests/console

    System.Drawing.Tests.FontFamilyTests.Families_Get_ReturnsExpected [FAIL]
      Assert.Equal() Failure
                ↓ (pos 0)
      Expected: Noto Sans Inscriptional Parthia
      Actual:   Verdana
                ↑ (pos 0)
      Stack Trace:
        /_/src/libraries/System.Drawing.Common/tests/FontFamilyTests.cs(126,0): at System.Drawing.Tests.FontFamilyTests.Families_Get_ReturnsExpected()

Mono https://helix.dot.net/api/2019-06-17/jobs/6648e68b-974b-4787-9345-e0223c696d09/workitems/System.Drawing.Common.Tests/console

    System.Drawing.Tests.FontFamilyTests.Families_Get_ReturnsExpected [FAIL]
      Assert.Equal() Failure
                ↓ (pos 0)
      Expected: Noto Sans Inscriptional Parthia
      Actual:   Verdana
                ↑ (pos 0)
      Stack Trace:
        /_/src/libraries/System.Drawing.Common/tests/FontFamilyTests.cs(126,0): at System.Drawing.Tests.FontFamilyTests.Families_Get_ReturnsExpected()
        /_/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(384,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

We get the same failure on macOS 10.15, and the text implies an issue with the base VM configuration (missing fonts? Too many fonts? Fonts returned in the wrong order?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions