Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: content/common/gamepad_seqlock_unittest.cc

Issue 8758015: Reduce number of threads and number of iterations to avoid timeout on bot (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gamepad_seqlock_unittest.cc
diff --git a/content/common/gamepad_seqlock_unittest.cc b/content/common/gamepad_seqlock_unittest.cc
index 777d804368f4b159de4638d6de5440f974e53f3c..7e5da3f81466731fc76aa29ab53fee352796074b 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];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698