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(); |