Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 696dc864430d2c72250a8ac60be5411080c7c94f..811973b46ad3f87e636b79e39a00180f7c5f8ef2 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1003,7 +1003,7 @@ TEST(TestCodeFlushing) { |
TEST(TestCodeFlushingIncremental) { |
// If we do not flush code this test is invalid. |
- if (!FLAG_flush_code) return; |
+ if (!FLAG_flush_code || !FLAG_flush_code_incrementally) return; |
i::FLAG_allow_natives_syntax = true; |
InitializeVM(); |
v8::HandleScope scope; |
@@ -1071,7 +1071,7 @@ TEST(TestCodeFlushingIncremental) { |
TEST(TestCodeFlushingIncrementalScavenge) { |
// If we do not flush code this test is invalid. |
- if (!FLAG_flush_code) return; |
+ if (!FLAG_flush_code || !FLAG_flush_code_incrementally) return; |
i::FLAG_allow_natives_syntax = true; |
InitializeVM(); |
v8::HandleScope scope; |