Skip to content

Commit 643ab28

Browse files
authored
Disable failing arm64 win10 Graphics.FromHdc tests (#56732)
* Disable arm64-win10 tests preventing clean build * Use ActiveIssue with conditional
1 parent f83a9d9 commit 643ab28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libraries/System.Drawing.Common/tests/GraphicsTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public static IEnumerable<object[]> FromHdc_TestData()
9898
}
9999

100100
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
101+
[ActiveIssue("https://github.com/dotnet/runtime/issues/51097", typeof(PlatformDetection), nameof(PlatformDetection.IsArm64Process), nameof(PlatformDetection.IsWindows10OrLater))]
101102
[ConditionalTheory(Helpers.IsDrawingSupported)]
102103
[MemberData(nameof(FromHdc_TestData))]
103104
public void FromHdc_ValidHdc_ReturnsExpected(IntPtr hdc)
@@ -110,6 +111,7 @@ public void FromHdc_ValidHdc_ReturnsExpected(IntPtr hdc)
110111
}
111112

112113
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
114+
[ActiveIssue("https://github.com/dotnet/runtime/issues/51097", typeof(PlatformDetection), nameof(PlatformDetection.IsArm64Process), nameof(PlatformDetection.IsWindows10OrLater))]
113115
[ConditionalTheory(Helpers.IsDrawingSupported)]
114116
[MemberData(nameof(FromHdc_TestData))]
115117
public void FromHdc_ValidHdcWithContext_ReturnsExpected(IntPtr hdc)
@@ -122,6 +124,7 @@ public void FromHdc_ValidHdcWithContext_ReturnsExpected(IntPtr hdc)
122124
}
123125

124126
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
127+
[ActiveIssue("https://github.com/dotnet/runtime/issues/51097", typeof(PlatformDetection), nameof(PlatformDetection.IsArm64Process), nameof(PlatformDetection.IsWindows10OrLater))]
125128
[ConditionalTheory(Helpers.IsDrawingSupported)]
126129
[MemberData(nameof(FromHdc_TestData))]
127130
public void FromHdcInternal_GetDC_ReturnsExpected(IntPtr hdc)
@@ -258,6 +261,7 @@ public static IEnumerable<object[]> Hwnd_TestData()
258261
}
259262

260263
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
264+
[ActiveIssue("https://github.com/dotnet/runtime/issues/51097", typeof(PlatformDetection), nameof(PlatformDetection.IsArm64Process), nameof(PlatformDetection.IsWindows10OrLater))]
261265
[ConditionalTheory(Helpers.IsDrawingSupported)]
262266
[MemberData(nameof(Hwnd_TestData))]
263267
public void FromHwnd_ValidHwnd_ReturnsExpected(IntPtr hWnd)
@@ -270,6 +274,7 @@ public void FromHwnd_ValidHwnd_ReturnsExpected(IntPtr hWnd)
270274
}
271275

272276
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
277+
[ActiveIssue("https://github.com/dotnet/runtime/issues/51097", typeof(PlatformDetection), nameof(PlatformDetection.IsArm64Process), nameof(PlatformDetection.IsWindows10OrLater))]
273278
[ConditionalTheory(Helpers.IsDrawingSupported)]
274279
[MemberData(nameof(Hwnd_TestData))]
275280
public void FromHwndInternal_ValidHwnd_ReturnsExpected(IntPtr hWnd)

0 commit comments

Comments
 (0)