[compiler-rt] r206950 - tsan: reduce number of iterations in the test

Dmitry Vyukov dvyukov at google.com
Tue Apr 22 23:49:09 PDT 2014


Author: dvyukov
Date: Wed Apr 23 01:49:09 2014
New Revision: 206950

URL: http://llvm.org/viewvc/llvm-project?rev=206950&view=rev
Log:
tsan: reduce number of iterations in the test
otherwise it runs for 50 seconds in debug mode


Modified:
    compiler-rt/trunk/lib/tsan/tests/unit/tsan_clock_test.cc

Modified: compiler-rt/trunk/lib/tsan/tests/unit/tsan_clock_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/tests/unit/tsan_clock_test.cc?rev=206950&r1=206949&r2=206950&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/tests/unit/tsan_clock_test.cc (original)
+++ compiler-rt/trunk/lib/tsan/tests/unit/tsan_clock_test.cc Wed Apr 23 01:49:09 2014
@@ -246,7 +246,7 @@ static bool ClockFuzzer(bool printing) {
 
   // Do N random operations (acquire, release, etc) and compare results
   // for SimpleThread/SyncClock and real Thread/SyncClock.
-  for (int i = 0; i < 1000000; i++) {
+  for (int i = 0; i < 10000; i++) {
     unsigned tid = rand() % kThreads;
     unsigned cid = rand() % kClocks;
     thr0[tid]->tick();





More information about the llvm-commits mailing list