| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 3f568beb4a8f1404aae54804e886aa04c321ac6f..cb4d097a24336c84ef2982f7c759d1ae4d2d8688 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -13083,10 +13083,12 @@ class RegExpInterruptionThread : public v8::base::Thread {
|
| v8::base::NoBarrier_Load(®exp_interruption_data.loop_count) < 7;
|
| v8::base::NoBarrier_AtomicIncrement(
|
| ®exp_interruption_data.loop_count, 1)) {
|
| - v8::base::OS::Sleep(50); // Wait a bit before requesting GC.
|
| + // Wait a bit before requesting GC.
|
| + v8::base::OS::Sleep(v8::base::TimeDelta::FromMilliseconds(50));
|
| reinterpret_cast<i::Isolate*>(isolate_)->stack_guard()->RequestGC();
|
| }
|
| - v8::base::OS::Sleep(50); // Wait a bit before terminating.
|
| + // Wait a bit before terminating.
|
| + v8::base::OS::Sleep(v8::base::TimeDelta::FromMilliseconds(50));
|
| v8::V8::TerminateExecution(isolate_);
|
| }
|
|
|
| @@ -18781,7 +18783,7 @@ class ThreadInterruptTest {
|
| struct sigaction action;
|
|
|
| // Ensure that we'll enter waiting condition
|
| - v8::base::OS::Sleep(100);
|
| + v8::base::OS::Sleep(v8::base::TimeDelta::FromMilliseconds(100));
|
|
|
| // Setup signal handler
|
| memset(&action, 0, sizeof(action));
|
| @@ -18792,7 +18794,7 @@ class ThreadInterruptTest {
|
| kill(getpid(), SIGCHLD);
|
|
|
| // Ensure that if wait has returned because of error
|
| - v8::base::OS::Sleep(100);
|
| + v8::base::OS::Sleep(v8::base::TimeDelta::FromMilliseconds(100));
|
|
|
| // Set value and signal semaphore
|
| test_->sem_value_ = 1;
|
|
|