diff options
| author | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 04:29:55 +0000 |
|---|---|---|
| committer | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 04:29:55 +0000 |
| commit | f7b06a5adbfd0cdf44d9eddba3eedb23b93528eb (patch) | |
| tree | d453eeb219398ad8694c35092c75e7902552e8ef | |
| parent | a8528385ebe713dc6c90a4f3bb324eb5fec9f274 (diff) | |
| download | chromium_src-f7b06a5adbfd0cdf44d9eddba3eedb23b93528eb.zip chromium_src-f7b06a5adbfd0cdf44d9eddba3eedb23b93528eb.tar.gz chromium_src-f7b06a5adbfd0cdf44d9eddba3eedb23b93528eb.tar.bz2 | |
Reduce number of threads and number of iterations to avoid timeout on bot
BUG=79050
TBR=jam
Review URL: http://codereview.chromium.org/8758015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112398 0039d316-1c4b-4281-b951-d872f2087c98
| -rw-r--r-- | content/common/gamepad_seqlock_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/common/gamepad_seqlock_unittest.cc b/content/common/gamepad_seqlock_unittest.cc index 777d804..7e5da3f 100644 --- a/content/common/gamepad_seqlock_unittest.cc +++ b/content/common/gamepad_seqlock_unittest.cc @@ -36,7 +36,7 @@ class BasicSeqLockTestThread : public PlatformThread::Delegate { PlatformThread::YieldCurrentThread(); } - for (unsigned i = 0; i < 10000; ++i) { + for (unsigned i = 0; i < 1000; ++i) { TestData copy; base::subtle::Atomic32 version; do { @@ -66,7 +66,7 @@ TEST(GamepadSeqLockTest, ManyThreads) { ANNOTATE_BENIGN_RACE_SIZED(&data, sizeof(data), "Racey reads are discarded"); - static const unsigned kNumReaderThreads = 100; + static const unsigned kNumReaderThreads = 10; BasicSeqLockTestThread threads[kNumReaderThreads]; PlatformThreadHandle handles[kNumReaderThreads]; |
