Index: test/cctest/test-weaksets.cc |
diff --git a/test/cctest/test-weaksets.cc b/test/cctest/test-weaksets.cc |
index 514b6b2393c9d25d827a5690a384f970798cbbf3..c8f3bbf142bf38c07027cd5fa252d4b19488381a 100644 |
--- a/test/cctest/test-weaksets.cc |
+++ b/test/cctest/test-weaksets.cc |
@@ -180,6 +180,7 @@ TEST(WeakSet_Shrinking) { |
// Test that weak set values on an evacuation candidate which are not reachable |
// by other paths are correctly recorded in the slots buffer. |
TEST(WeakSet_Regress2060a) { |
+ if (i::FLAG_never_compact) return; |
FLAG_always_compact = true; |
LocalContext context; |
Isolate* isolate = GetIsolateFrom(&context); |
@@ -215,6 +216,7 @@ TEST(WeakSet_Regress2060a) { |
// Test that weak set keys on an evacuation candidate which are reachable by |
// other strong paths are correctly recorded in the slots buffer. |
TEST(WeakSet_Regress2060b) { |
+ if (i::FLAG_never_compact) return; |
FLAG_always_compact = true; |
#ifdef VERIFY_HEAP |
FLAG_verify_heap = true; |