diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/System.IO.FileSystem/tests/File/Copy.cs | 2 | ||||
-rw-r--r-- | src/System.IO.FileSystem/tests/File/Move.cs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/System.IO.FileSystem/tests/File/Copy.cs b/src/System.IO.FileSystem/tests/File/Copy.cs index 610f8e0414..58cc94135e 100644 --- a/src/System.IO.FileSystem/tests/File/Copy.cs +++ b/src/System.IO.FileSystem/tests/File/Copy.cs @@ -49,6 +49,7 @@ namespace System.IO.Tests Assert.Throws<IOException>(() => Copy(testFile, testFile)); } +#if !MONOTOUCH_TV // symlink() on a TVOS device always returns EPERM [DllImport("libc", SetLastError = true)] private static extern int symlink(string target, string linkpath); @@ -64,6 +65,7 @@ namespace System.IO.Tests Copy(dangling_symlink, dangling_symlink_new_location); Assert.True(File.Exists(dangling_symlink_new_location)); // File.Exists returns true for dangling symlinks } +#endif [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] diff --git a/src/System.IO.FileSystem/tests/File/Move.cs b/src/System.IO.FileSystem/tests/File/Move.cs index ce2c7d0918..c1091d20d3 100644 --- a/src/System.IO.FileSystem/tests/File/Move.cs +++ b/src/System.IO.FileSystem/tests/File/Move.cs @@ -175,6 +175,7 @@ namespace System.IO.Tests Assert.False(File.Exists(testFileSource.FullName)); } +#if !MONOTOUCH_TV // symlink() on a TVOS device always returns EPERM [DllImport("libc", SetLastError = true)] private static extern int symlink(string target, string linkpath); @@ -190,6 +191,7 @@ namespace System.IO.Tests Move(dangling_symlink, dangling_symlink_new_location); Assert.True(File.Exists(dangling_symlink_new_location)); // File.Exists returns true for dangling symlinks } +#endif [Fact] public void FileNameWithSignificantWhitespace() |