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..32493ec3056677b6747e1acae3178c69d36cf91c 100644 |
--- a/base/memory/shared_memory_unittest.cc |
+++ b/base/memory/shared_memory_unittest.cc |
@@ -514,6 +514,7 @@ TEST(SharedMemoryTest, MapTwice) { |
} |
#if defined(OS_POSIX) |
+#if !defined(OS_IOS) |
Nico
2014/07/31 20:11:12
Add a comment that explains why this is disabled o
lliabraa
2014/07/31 20:26:13
Done.
|
// Create a shared memory object, mmap it, and mprotect it to PROT_EXEC. |
TEST(SharedMemoryTest, AnonymousExecutable) { |
const uint32 kTestSize = 1 << 16; |
@@ -529,6 +530,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 |