Reviewers: Hannes Payer, wingo,

Message:
PTAL

Description:
Fix EstimateMarkingStepSizeTest.

BUG=

Please review this at https://codereview.chromium.org/494683002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+2, -2 lines):
  M test/heap-unittests/heap-unittest.cc


Index: test/heap-unittests/heap-unittest.cc
diff --git a/test/heap-unittests/heap-unittest.cc b/test/heap-unittests/heap-unittest.cc index 220d8f2dffb7350579e9d489780eb58cc81f53d5..5abfe198a67162e7999b0f5fa5b3c6a0926e55b1 100644
--- a/test/heap-unittests/heap-unittest.cc
+++ b/test/heap-unittests/heap-unittest.cc
@@ -32,13 +32,13 @@ TEST(EstimateMarkingStepSizeTest, EstimateMarkingStepSizeNonZero) {

 TEST(EstimateMarkingStepSizeTest, EstimateMarkingStepSizeOverflow1) {
intptr_t step_size = GCIdleTimeHandler::EstimateMarkingStepSize(10, INT_MAX);
-  EXPECT_EQ(INT_MAX, step_size);
+  EXPECT_LE(INT_MAX, step_size);
 }


 TEST(EstimateMarkingStepSizeTest, EstimateMarkingStepSizeOverflow2) {
intptr_t step_size = GCIdleTimeHandler::EstimateMarkingStepSize(INT_MAX, 10);
-  EXPECT_EQ(INT_MAX, step_size);
+  EXPECT_LE(INT_MAX, step_size);
 }

 }  // namespace internal


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to