From c9e82e3cf8e6bf9f31b488c231366413b31278e2 Mon Sep 17 00:00:00 2001 From: Meri Khamoyan Date: Mon, 17 Jan 2022 11:22:59 +0100 Subject: [PATCH] #51371 fixed failing test in iossimulator --- src/libraries/System.IO.FileSystem/tests/File/Create.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.IO.FileSystem/tests/File/Create.cs b/src/libraries/System.IO.FileSystem/tests/File/Create.cs index fb7f4be892c74..b113a4cfc5ad7 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/Create.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/Create.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Linq; +using System.Runtime.InteropServices; using Xunit; namespace System.IO.Tests @@ -219,9 +220,13 @@ public void LongFileName() [Fact] [PlatformSpecific(CaseSensitivePlatforms)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/51371", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void CaseSensitive() { + if (RuntimeInformation.RuntimeIdentifier.StartsWith("iossimulator")) + { + return; + } + DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); string testFile = Path.Combine(testDir.FullName, GetTestFileName()); using (File.Create(testFile + "AAAA"))