Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index dcb11be19d1c84a377b2381a7d3929aff4bbe3a1..2288f44c6d82a92b255bfbbe40b14955b099b3fc 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -15742,46 +15742,6 @@ TEST(IdleNotification) { |
} |
-// Test that idle notification can be handled and eventually collects garbage. |
-TEST(IdleNotificationWithSmallHint) { |
- const intptr_t MB = 1024 * 1024; |
- const int IdlePauseInMs = 900; |
- LocalContext env; |
- v8::HandleScope scope(env->GetIsolate()); |
- intptr_t initial_size = CcTest::heap()->SizeOfObjects(); |
- CreateGarbageInOldSpace(); |
- intptr_t size_with_garbage = CcTest::heap()->SizeOfObjects(); |
- CHECK_GT(size_with_garbage, initial_size + MB); |
- bool finished = false; |
- for (int i = 0; i < 200 && !finished; i++) { |
- finished = env->GetIsolate()->IdleNotification(IdlePauseInMs); |
- } |
- intptr_t final_size = CcTest::heap()->SizeOfObjects(); |
- CHECK(finished); |
- CHECK_LT(final_size, initial_size + 1); |
-} |
- |
Hannes Payer (out of office)
2015/03/23 10:55:25
These tests are identical and do not test anything
|
- |
-// Test that idle notification can be handled and eventually collects garbage. |
-TEST(IdleNotificationWithLargeHint) { |
- const intptr_t MB = 1024 * 1024; |
- const int IdlePauseInMs = 900; |
- LocalContext env; |
- v8::HandleScope scope(env->GetIsolate()); |
- intptr_t initial_size = CcTest::heap()->SizeOfObjects(); |
- CreateGarbageInOldSpace(); |
- intptr_t size_with_garbage = CcTest::heap()->SizeOfObjects(); |
- CHECK_GT(size_with_garbage, initial_size + MB); |
- bool finished = false; |
- for (int i = 0; i < 200 && !finished; i++) { |
- finished = env->GetIsolate()->IdleNotification(IdlePauseInMs); |
- } |
- intptr_t final_size = CcTest::heap()->SizeOfObjects(); |
- CHECK(finished); |
- CHECK_LT(final_size, initial_size + 1); |
-} |
- |
- |
TEST(Regress2333) { |
LocalContext env; |
for (int i = 0; i < 3; i++) { |