Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: test/cctest/test-heap.cc

Issue 7989009: Fix compilation of GrowAndShrinkNewSpace on Mac. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index 245afcf6c799532e29fb4c05d09e0585ba815d09..40482be7edbd755cc06430d60b8816f448ad2cb2 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -1231,7 +1231,7 @@ TEST(GrowAndShrinkNewSpace) {
old_capacity = new_space->Capacity();
new_space->Grow();
new_capacity = new_space->Capacity();
- CHECK_EQ(2 * old_capacity, new_capacity);
+ CHECK(2 * old_capacity == new_capacity);
// Fill up new space to the point that it is completely full. Make sure
// that the scavenger does not undo the filling.
@@ -1246,13 +1246,13 @@ TEST(GrowAndShrinkNewSpace) {
}
}
new_capacity = new_space->Capacity();
- CHECK_EQ(old_capacity, new_capacity);
+ CHECK(old_capacity == new_capacity);
// Explicitly shrinking should not affect space capacity.
old_capacity = new_space->Capacity();
new_space->Shrink();
new_capacity = new_space->Capacity();
- CHECK_EQ(old_capacity, new_capacity);
+ CHECK(old_capacity == new_capacity);
// Let the scavenger empty the new space.
HEAP->CollectGarbage(NEW_SPACE);
@@ -1262,7 +1262,7 @@ TEST(GrowAndShrinkNewSpace) {
old_capacity = new_space->Capacity();
new_space->Shrink();
new_capacity = new_space->Capacity();
- CHECK_EQ(old_capacity, 2 * new_capacity);
+ CHECK(old_capacity == 2 * new_capacity);
// Consecutive shrinking should not affect space capacity.
old_capacity = new_space->Capacity();
@@ -1270,5 +1270,5 @@ TEST(GrowAndShrinkNewSpace) {
new_space->Shrink();
new_space->Shrink();
new_capacity = new_space->Capacity();
- CHECK_EQ(old_capacity, new_capacity);
+ CHECK(old_capacity == new_capacity);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698