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

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

Issue 12089107: Determine number of available cores on all platforms. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 | « test/cctest/cctest.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-platform.cc
diff --git a/test/mjsunit/regress/regress-crbug-172345.js b/test/cctest/test-platform.cc
similarity index 91%
copy from test/mjsunit/regress/regress-crbug-172345.js
copy to test/cctest/test-platform.cc
index 711501caa791f2974635ac4dd894568a2e3fc982..6c20b853c5e7408b1877ee74617c01c3fc32ed5f 100644
--- a/test/mjsunit/regress/regress-crbug-172345.js
+++ b/test/cctest/test-platform.cc
@@ -25,10 +25,13 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-function f(a,i) {
- return a[i];
-}
+#include <stdlib.h>
+
+#include "cctest.h"
+#include "platform.h"
-f([1,2,3], "length");
-f([1,2,3], "length");
-f([1,2,3], 2);
+using namespace ::v8::internal;
+
+TEST(NumberOfCores) {
+ CHECK_GT(OS::NumberOfCores(), 0);
+}
« no previous file with comments | « test/cctest/cctest.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698