summaryrefslogtreecommitdiffstats
path: root/test/cctest/test-mark-compact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cctest/test-mark-compact.cc')
-rw-r--r--test/cctest/test-mark-compact.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
index 99425671..86f105f2 100644
--- a/test/cctest/test-mark-compact.cc
+++ b/test/cctest/test-mark-compact.cc
@@ -71,6 +71,10 @@ TEST(MarkingStack) {
TEST(Promotion) {
+ // This test requires compaction. If compaction is turned off, we
+ // skip the entire test.
+ if (FLAG_never_compact) return;
+
// Ensure that we get a compacting collection so that objects are promoted
// from new space.
FLAG_gc_global = true;