diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-08-23 15:42:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 15:42:05 +0300 |
commit | 33308c540f2a06d11f555a80244728941f09f628 (patch) | |
tree | 9844c1adf2e149c843742fd7ddfcd8ac0e4f92ad | |
parent | 4b3716814825e2e4b2f5cb12a4258b473d2f389d (diff) |
Disable DanglingSymlinkMove/Copy tests on TVOS (#336)
symlink() doesn't work on TVOS devices.
-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() |