Skip to content

Commit df3837c

Browse files
buyaa-nstephentoub
authored andcommitted
Disabling test failing in Mac OSX 10.15 (dotnet#40332)
* Disabling test failing in Mac OSX 10.15 * Using active issue annotation * Checking OS version instead of disabling test for any Mac * Formatting update
1 parent 001f42b commit df3837c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.File.Move.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using System.Runtime.InteropServices;
56
using Xunit;
67

78
namespace System.IO.Tests
@@ -52,7 +53,11 @@ public void Linux_File_Move_To_Different_Watched_Directory()
5253
[Fact]
5354
public void File_Move_From_Unwatched_To_Watched()
5455
{
55-
FileMove_FromUnwatchedToWatched(WatcherChangeTypes.Created);
56+
// TODO remove OS version check after https://github.com/dotnet/corefx/issues/40034 fixed
57+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || Environment.OSVersion.Version.Major < 19)
58+
{
59+
FileMove_FromUnwatchedToWatched(WatcherChangeTypes.Created);
60+
}
5661
}
5762

5863
[Theory]

0 commit comments

Comments
 (0)