[bcl] Add a workaround for a watchos limitation to a memory mapped file test. Fixes...
authorZoltan Varga <vargaz@gmail.com>
Wed, 29 Jun 2016 13:39:37 +0000 (09:39 -0400)
committerZoltan Varga <vargaz@gmail.com>
Wed, 29 Jun 2016 13:39:44 +0000 (09:39 -0400)
mcs/class/System.Core/Test/System.IO.MemoryMappedFiles/MemoryMappedFileTest.cs

index b61fcb2bf4dbda1e403cf6b0c84d9539361b605d..27191c37ed2b7b121d2f1926471d459add1d013f 100644 (file)
@@ -379,7 +379,9 @@ namespace MonoTests.System.IO.MemoryMappedFiles {
                [Test]
                public void CreateViewStreamAlignToPageSize ()
                {
-#if MONOTOUCH
+#if __WATCHOS__
+                       int pageSize = 4096;
+#elif MONOTOUCH
                        // iOS bugs on ARM64 - bnc #27667 - apple #
                        int pageSize = (IntPtr.Size == 4) ? Environment.SystemPageSize : 4096;
 #else