From f7b06a5adbfd0cdf44d9eddba3eedb23b93528eb Mon Sep 17 00:00:00 2001 From: "scottmg@chromium.org" Date: Thu, 1 Dec 2011 04:29:55 +0000 Subject: 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 --- content/common/gamepad_seqlock_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/common/gamepad_seqlock_unittest.cc') 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]; -- cgit v1.1