Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 1b5497f7720a69fdffac3c005c289fc4618c239f..792608f2e053a8fc139518c527718419b89ba4a3 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -1821,6 +1821,7 @@ TEST(CodeSerializerEagerCompilationAndPreAge) { |
} |
TEST(Regress503552) { |
+ if (!FLAG_incremental_marking) return; |
// Test that the code serializer can deal with weak cells that form a linked |
// list during incremental marking. |
CcTest::InitializeVM(); |