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

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

Issue 9617004: Fix nosse2 tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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-random.cc
diff --git a/test/cctest/test-random.cc b/test/cctest/test-random.cc
index 7a1d9e7a1f661681605a2077f8e3fee004fbb517..a1f49318f5ed20bcbfa3c8550ebbda7fafd2d016 100644
--- a/test/cctest/test-random.cc
+++ b/test/cctest/test-random.cc
@@ -70,9 +70,9 @@ void TestSeeds(Handle<JSFunction> fun,
TEST(CrankshaftRandom) {
- if (!FLAG_crankshaft) return;
-
if (env.IsEmpty()) env = v8::Context::New();
+ // Skip test if crankshaft is disabled.
+ if (!V8::UseCrankshaft()) return;
v8::HandleScope scope;
env->Enter();
« 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