From 64ecb69b4a5ba0e407110e69c6b99d72bdd2893f Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Tue, 1 Dec 2009 11:16:21 +0000 Subject: [PATCH] Fix presubmit errors TBR=ager@chromium.org Review URL: http://codereview.chromium.org/449053 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3390 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-api.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index c484601..9fe760a 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -8519,10 +8519,7 @@ static int GetGlobalObjectsCount() { v8::internal::HeapIterator it; while (it.has_next()) { v8::internal::HeapObject* object = it.next(); - if (object->IsJSGlobalObject()) { - count++; - //object->PrintLn(); - } + if (object->IsJSGlobalObject()) count++; } return count; } @@ -8561,7 +8558,7 @@ TEST(Bug528) { v8::internal::Heap::CollectAllGarbage(false); if (GetGlobalObjectsCount() == 1) break; } - CHECK(gc_count <= 2); + CHECK_GE(2, gc_count); CHECK_EQ(1, GetGlobalObjectsCount()); // Eval in a function creates reference from the compilation cache to the @@ -8610,7 +8607,7 @@ TEST(Bug528) { v8::internal::Heap::CollectAllGarbage(false); if (GetGlobalObjectsCount() == 1) break; } - CHECK(gc_count <= 2); + CHECK_GE(2, gc_count); CHECK_EQ(1, GetGlobalObjectsCount()); other_context.Dispose(); -- 2.7.4