Skip to content

Commit 4f567e5

Browse files
Take MacCatalyst into account in EnvironmentTests.WorkingSet_Valid test (#63996)
Co-authored-by: Maxim Lipnin <v-maxlip@microsoft.com>
1 parent 49d6db3 commit 4f567e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void Version_Valid()
236236
[Fact]
237237
public void WorkingSet_Valid()
238238
{
239-
if (PlatformDetection.IsBrowser || PlatformDetection.IsiOS || PlatformDetection.IstvOS)
239+
if (PlatformDetection.IsBrowser || (PlatformDetection.IsiOS && !PlatformDetection.IsMacCatalyst) || PlatformDetection.IstvOS)
240240
Assert.Equal(0, Environment.WorkingSet);
241241
else
242242
Assert.True(Environment.WorkingSet > 0, "Expected positive WorkingSet value");

0 commit comments

Comments
 (0)