diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 18:46:10 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 18:46:10 +0000 |
commit | 396e3fdfa86b0d5449360157c77d8d12af286816 (patch) | |
tree | f9f97412010a87e45171478a1dcfa050586b63e1 /ppapi/tests/test_post_message.cc | |
parent | f5ece4d7897c3299e769f058a7eb031b10940976 (diff) | |
download | chromium_src-396e3fdfa86b0d5449360157c77d8d12af286816.zip chromium_src-396e3fdfa86b0d5449360157c77d8d12af286816.tar.gz chromium_src-396e3fdfa86b0d5449360157c77d8d12af286816.tar.bz2 |
PPAPI: Dial back the PostMessage threading test and re-enable on Win
The test runs fine for me on a 32-bit Win XP machine, so I'm speculating it was just timing out on the bots. Timeout was probably especially likely when the PostMessage tests were all run together.
BUG=95557
TEST=
Review URL: https://chromiumcodereview.appspot.com/9358030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121255 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_post_message.cc')
-rw-r--r-- | ppapi/tests/test_post_message.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/tests/test_post_message.cc b/ppapi/tests/test_post_message.cc index 94b47de..68fe633 100644 --- a/ppapi/tests/test_post_message.cc +++ b/ppapi/tests/test_post_message.cc @@ -29,8 +29,16 @@ const char kTestString[] = "Hello world!"; const bool kTestBool = true; const int32_t kTestInt = 42; const double kTestDouble = 42.0; + +// On Windows XP bots, the NonMainThread test can run very slowly. So we dial +// back the number of threads & messages when running on Windows. +#ifdef PPAPI_OS_WIN +const int32_t kThreadsToRun = 2; +const int32_t kMessagesToSendPerThread = 5; +#else const int32_t kThreadsToRun = 4; const int32_t kMessagesToSendPerThread = 10; +#endif // The struct that invoke_post_message_thread_func expects for its argument. // It includes the instance on which to invoke PostMessage, and the value to |