Index: test/cctest/heap/test-mark-compact.cc |
diff --git a/test/cctest/heap/test-mark-compact.cc b/test/cctest/heap/test-mark-compact.cc |
index a906d3473fec3b07ee78e43111faa94cb1895fe9..d9a3cde7bf566460461cfccc38d8b27254b3c8a6 100644 |
--- a/test/cctest/heap/test-mark-compact.cc |
+++ b/test/cctest/heap/test-mark-compact.cc |
@@ -96,6 +96,9 @@ TEST(Promotion) { |
} |
HEAP_TEST(NoPromotion) { |
+ // Page promotion allows pages to be moved to old space even in the case of |
+ // OOM scenarios. |
+ FLAG_page_promotion = false; |
CcTest::InitializeVM(); |
Isolate* isolate = CcTest::i_isolate(); |
{ |