Skip to content

Commit

Permalink
dotnet#51371 fixed failing test in iossimulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhamoyan committed Jan 17, 2022
1 parent 9b29946 commit c9e82e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libraries/System.IO.FileSystem/tests/File/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit c9e82e3

Please sign in to comment.