| Index: test/cctest/test-cpu-profiler.cc
|
| diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc
|
| index f4d9936329981a650ce3fb27caa29b29aadb8a17..223f5fc3925057dc70e228c8a39520c45972260b 100644
|
| --- a/test/cctest/test-cpu-profiler.cc
|
| +++ b/test/cctest/test-cpu-profiler.cc
|
| @@ -1062,6 +1062,11 @@ TEST(FunctionCallSample) {
|
|
|
| cpu_profiler->StartCpuProfiling(profile_name);
|
| int32_t duration_ms = 100;
|
| +#if defined(_WIN32) || defined(_WIN64)
|
| + // 100ms is not enough on Windows. See
|
| + // https://code.google.com/p/v8/issues/detail?id=2628
|
| + duration_ms = 400;
|
| +#endif
|
| v8::Handle<v8::Value> args[] = { v8::Integer::New(duration_ms) };
|
| function->Call(env->Global(), ARRAY_SIZE(args), args);
|
| const v8::CpuProfile* profile = cpu_profiler->StopCpuProfiling(profile_name);
|
|
|