diff options
author | Jochen Eisinger <jochen@chromium.org> | 2015-05-29 10:22:32 +0200 |
---|---|---|
committer | Jochen Eisinger <jochen@chromium.org> | 2015-05-29 10:22:32 +0200 |
commit | cafa3fd96e850acbfa2633009b873b8ecb7aee5f (patch) | |
tree | 97502a0558d61513921dd39ff2bc9fe4dbc38cc9 /testing/embedder_test.cpp | |
parent | 8ba4a3ccfde20a46740c6a658e29afd6d2e1edb4 (diff) | |
download | pdfium-cafa3fd96e850acbfa2633009b873b8ecb7aee5f.tar.xz |
Run V8 in predictable mode for pdfium_test
This won't post tasks to the background threads
BUG=none
R=kcc@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/1157123003
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r-- | testing/embedder_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 9b21609978..70c32af8c7 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -193,6 +193,9 @@ EmbedderTest::~EmbedderTest() { void EmbedderTest::SetUp() { v8::V8::InitializeICU(); + // By enabling predicatble mode, V8 won't post any background tasks. + const char predictable_flag[] = "--predictable"; + v8::V8::SetFlagsFromString(predictable_flag, strlen(predictable_flag)); #ifdef V8_USE_EXTERNAL_STARTUP_DATA ASSERT_TRUE(GetExternalData(g_exe_path_, "natives_blob.bin", &natives_)); |