From 7c4b59ccf2cfc74c54e6c8922ab80cda20c3a55e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=A0imon=20Rozs=C3=ADval?= Date: Tue, 31 Jan 2023 10:41:56 +0100 Subject: [PATCH] [Android] Fix System.IO.MemoryMappedFiles tests (#81368) --- .../tests/MemoryMappedFilesTestsBase.Unix.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFilesTestsBase.Unix.cs b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFilesTestsBase.Unix.cs index 8764766..a985621 100644 --- a/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFilesTestsBase.Unix.cs +++ b/src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFilesTestsBase.Unix.cs @@ -20,12 +20,14 @@ namespace System.IO.MemoryMappedFiles.Tests int pageSize; const int _SC_PAGESIZE_FreeBSD = 47; const int _SC_PAGESIZE_Linux = 30; + const int _SC_PAGESIZE_Android = 39; const int _SC_PAGESIZE_NetBSD = 28; const int _SC_PAGESIZE_OSX = 29; pageSize = sysconf( OperatingSystem.IsMacOS() ? _SC_PAGESIZE_OSX : OperatingSystem.IsFreeBSD() ? _SC_PAGESIZE_FreeBSD : RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD")) ? _SC_PAGESIZE_NetBSD : + OperatingSystem.IsAndroid() ? _SC_PAGESIZE_Android : _SC_PAGESIZE_Linux); Assert.InRange(pageSize, 1, int.MaxValue); return pageSize; -- 2.7.4