Index: base/process/memory_unittest.cc |
diff --git a/base/process/memory_unittest.cc b/base/process/memory_unittest.cc |
index 33fcc85e6ae9d80e30e58a9f8393229cd149e625..5a1bcdfb1ba4d1bb195092b5d9889128dad06a1c 100644 |
--- a/base/process/memory_unittest.cc |
+++ b/base/process/memory_unittest.cc |
@@ -243,12 +243,15 @@ TEST_F(OutOfMemoryDeathTest, Valloc) { |
} |
#if defined(OS_LINUX) |
+ |
+#if PVALLOC_AVAILABLE == 1 |
TEST_F(OutOfMemoryDeathTest, Pvalloc) { |
ASSERT_DEATH({ |
SetUpInDeathAssert(); |
value_ = pvalloc(test_size_); |
}, ""); |
} |
+#endif // PVALLOC_AVAILABLE == 1 |
TEST_F(OutOfMemoryDeathTest, Memalign) { |
ASSERT_DEATH({ |