Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index 16d1e8a762c0981254784b350273d6ac347a85c3..e6680a62f222b2c449c16b60f9021f93aff7df46 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -430,7 +430,8 @@ TEST(CompactionSpace) { |
// and would thus neither grow, nor be able to allocate an object. |
const int kNumObjects = 100; |
const int kExpectedPages = (kNumObjects / (compaction_space->AreaSize() / |
- Page::kMaxRegularHeapObjectSize)); |
+ Page::kMaxRegularHeapObjectSize)) + |
+ 1; |
for (int i = 0; i < kNumObjects; i++) { |
compaction_space->AllocateRawUnaligned(Page::kMaxRegularHeapObjectSize) |
.ToObjectChecked(); |