From 178f0c5de73ae83e96b7b0da55cae0c166ea68cf Mon Sep 17 00:00:00 2001 From: Tomas Weinfurt Date: Sat, 9 Nov 2019 12:53:06 -0800 Subject: [PATCH] enable FileSystem.Watcher on FreeBSD (dotnet/corefx#42488) Commit migrated from https://github.com/dotnet/corefx/commit/c88cb6e29e831097d6072a4ca467f6c890364627 --- .../src/System.IO.FileSystem.Watcher.csproj | 4 ++-- .../System.IO.FileSystem.Watcher/tests/Configurations.props | 3 ++- .../tests/FileSystemWatcher.Directory.Move.cs | 1 + .../tests/System.IO.FileSystem.Watcher.Tests.csproj | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/libraries/System.IO.FileSystem.Watcher/src/System.IO.FileSystem.Watcher.csproj b/src/libraries/System.IO.FileSystem.Watcher/src/System.IO.FileSystem.Watcher.csproj index c82040b5943..ec28936df1a 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/src/System.IO.FileSystem.Watcher.csproj +++ b/src/libraries/System.IO.FileSystem.Watcher/src/System.IO.FileSystem.Watcher.csproj @@ -74,7 +74,7 @@ Common\Interop\Unix\Interop.PathConf.cs - + Common\Interop\Linux\Interop.inotify.cs @@ -125,7 +125,7 @@ Common\System\Text\ValueUtf8Converter.cs - + diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/Configurations.props b/src/libraries/System.IO.FileSystem.Watcher/tests/Configurations.props index e8460df54ad..d23e9c15371 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/Configurations.props +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/Configurations.props @@ -3,7 +3,8 @@ netcoreapp-Linux; netcoreapp-OSX; + netcoreapp-FreeBSD; netcoreapp-Windows_NT; - \ No newline at end of file + diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs index 2c560f66786..ff8e87e1567 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs @@ -50,6 +50,7 @@ namespace System.IO.Tests } [Theory] + [PlatformSpecific(~TestPlatforms.FreeBSD)] [InlineData(1)] [InlineData(2)] [InlineData(3)] diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/System.IO.FileSystem.Watcher.Tests.csproj b/src/libraries/System.IO.FileSystem.Watcher/tests/System.IO.FileSystem.Watcher.Tests.csproj index 8bca04fe123..000af13d3e5 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/System.IO.FileSystem.Watcher.Tests.csproj +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/System.IO.FileSystem.Watcher.Tests.csproj @@ -1,6 +1,6 @@ - netcoreapp-Linux-Debug;netcoreapp-Linux-Release;netcoreapp-OSX-Debug;netcoreapp-OSX-Release;netcoreapp-Windows_NT-Debug;netcoreapp-Windows_NT-Release + netcoreapp-Linux-Debug;netcoreapp-Linux-Release;netcoreapp-OSX-Debug;netcoreapp-OSX-Release;netcoreapp-Windows_NT-Debug;netcoreapp-Windows_NT-Release;netcore-FreeBSD-Debug;netcore-FreeBSD-Release