Index: base/memory/shared_memory_unittest.cc |
diff --git a/base/memory/shared_memory_unittest.cc b/base/memory/shared_memory_unittest.cc |
index 4d49c36f13656d45445f2d69318158b9899a5fac..bf1c07da280f40cc59e1447e103b28ebddd51da9 100644 |
--- a/base/memory/shared_memory_unittest.cc |
+++ b/base/memory/shared_memory_unittest.cc |
@@ -514,6 +514,8 @@ TEST(SharedMemoryTest, MapTwice) { |
} |
#if defined(OS_POSIX) |
+// This test is not applicable for iOS (crbug.com/399384). |
+#if !defined(OS_IOS) |
// Create a shared memory object, mmap it, and mprotect it to PROT_EXEC. |
TEST(SharedMemoryTest, AnonymousExecutable) { |
const uint32 kTestSize = 1 << 16; |
@@ -529,6 +531,7 @@ TEST(SharedMemoryTest, AnonymousExecutable) { |
EXPECT_EQ(0, mprotect(shared_memory.memory(), shared_memory.requested_size(), |
PROT_READ | PROT_EXEC)); |
} |
+#endif // !defined(OS_IOS) |
// Android supports a different permission model than POSIX for its "ashmem" |
// shared memory implementation. So the tests about file permissions are not |