Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index 8fcb7d94e879b6229cc3779c66657a8f17dd36e2..9ad44233d9ae23b6b5fa81779844b89d8b0b6c9e 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -472,7 +472,7 @@ static inline void FillCurrentPage(v8::internal::NewSpace* space) { |
UNINITIALIZED_TEST(NewSpaceGrowsToTargetCapacity) { |
FLAG_target_semi_space_size = 2; |
- FLAG_optimize_for_size = false; |
+ if (FLAG_optimize_for_size) return; |
v8::Isolate* isolate = v8::Isolate::New(); |
{ |