Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index edcfff217aa250e2452da3c481b3f6a88ed82864..079f4a43641045ca91b0acec997ed51a79715d5c 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -160,7 +160,7 @@ static bool ValidateSnapshot(const v8::HeapSnapshot* snapshot, int depth) { |
++unretained_entries_count; |
} |
} |
- return unretained_entries_count > 1 ? false : true; |
+ return unretained_entries_count == 0; |
} |