Skip to content

Commit

Permalink
[release/9.0-staging] Backport test fixes related to BinaryFormatter …
Browse files Browse the repository at this point in the history
…removal (#111508)

* [NRBF] Reduce the most time-consuming test case to avoid timeouts for checked builds (#110550)

* don't run drawing tests on Mono (#111208)

* don't run Drawing-related tests that do things like creating Bitmaps on Mono, as it's not supported (it does not support ComWrappers)

* re-enable the tests
  • Loading branch information
adamsitnik authored Jan 17, 2025
1 parent f2a1313 commit f9ffbe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ private static bool GetLinqExpressionsBuiltWithIsInterpretingOnly()
return !(bool)typeof(LambdaExpression).GetMethod("get_CanCompileToIL").Invoke(null, Array.Empty<object>());
}

// Drawing is not supported on non windows platforms in .NET 7.0+.
public static bool IsDrawingSupported => IsWindows && IsNotWindowsNanoServer && IsNotWindowsServerCore;
// Drawing is not supported on non windows platforms in .NET 7.0+ and on Mono.
public static bool IsDrawingSupported => IsWindows && IsNotWindowsNanoServer && IsNotWindowsServerCore && IsNotMonoRuntime;

public static bool IsAsyncFileIOSupported => !IsBrowser && !IsWasi;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public NonSeekableStream(byte[] buffer) : base(buffer) { }

public static IEnumerable<object[]> GetCanReadArrayOfAnySizeArgs()
{
foreach (int size in new[] { 1, 127, 128, 512_001, 512_001 })
foreach (int size in new[] { 1, 127, 128, 20_001 })
{
yield return new object[] { size, true };
yield return new object[] { size, false };
Expand Down

0 comments on commit f9ffbe0

Please sign in to comment.