Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index d6adfea3dd24ebe4eb3e63d1c8c5ad5ac69c3eb9..44cd6094f341c164ef54db1cb84fb8ff9d50d162 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -424,12 +424,9 @@ TEST(HeapEntryIdsAndGC) { |
const v8::HeapSnapshot* snapshot2 = |
v8::HeapProfiler::TakeSnapshot(s2_str); |
- // Second snapshot has one more string, it is it's name 's2'. |
- CHECK( |
- snapshot1->GetMaxSnapshotJSObjectId() <= |
- snapshot2->GetMaxSnapshotJSObjectId() && |
- snapshot2->GetMaxSnapshotJSObjectId() <= |
- snapshot1->GetMaxSnapshotJSObjectId() + i::HeapObjectsMap::kObjectIdStep); |
+ CHECK(snapshot1->GetMaxSnapshotJSObjectId() > 7000); |
+ CHECK(snapshot1->GetMaxSnapshotJSObjectId() <= |
+ snapshot2->GetMaxSnapshotJSObjectId()); |
const v8::HeapGraphNode* global1 = GetGlobalObject(snapshot1); |
const v8::HeapGraphNode* global2 = GetGlobalObject(snapshot2); |