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

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/cctest/test-platform-macos.cc b/test/cctest/test-platform.cc
similarity index 58%
copy from test/cctest/test-platform-macos.cc
copy to test/cctest/test-platform.cc
index d80fa5452f15accfa88d475911524352494735c7..1b09cac4e4a8cb62f76f27b47130eb91ba4b4fe2 100644
--- a/test/cctest/test-platform-macos.cc
+++ b/test/cctest/test-platform.cc
@@ -1,10 +1,16 @@
// Copyright 2006-2008 the V8 project authors. All rights reserved.
Michael Starzinger 2013/02/15 10:36:45 Copyright header should say just "2013", no year-r
Hannes Payer (out of office) 2013/02/15 10:42:18 Done.
//
-// Tests of the TokenLock class from lock.h
+// Tests general platform code.
#include <stdlib.h>
#include "v8.h"
+
+#include "platform.h"
Michael Starzinger 2013/02/15 10:36:45 Can we alpha-sort the includes?
Hannes Payer (out of office) 2013/02/15 10:42:18 Done.
Hannes Payer (out of office) 2013/02/15 10:42:18 Done.
#include "cctest.h"
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