Revision: 3020
Author: [email protected]
Date: Mon Oct 5 17:35:46 2009
Log: Fix test error for IdleNotification() return code check.
http://code.google.com/p/v8/source/detail?r=3020
Modified:
/branches/bleeding_edge/test/cctest/test-api.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-api.cc Mon Oct 5 17:06:17 2009
+++ /branches/bleeding_edge/test/cctest/test-api.cc Mon Oct 5 17:35:46 2009
@@ -7913,11 +7913,15 @@
}
-// Test that idle notification can be handled when V8 has not yet been
-// set up.
+// Test that idle notification can be handled and eventually returns true.
THREADED_TEST(IdleNotification) {
- for (int i = 0; i < 100; i++)
- CHECK(v8::V8::IdleNotification());
+ bool rv = false;
+ for (int i = 0; i < 100; i++) {
+ rv = v8::V8::IdleNotification();
+ if (rv)
+ break;
+ }
+ CHECK(rv == true);
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---