shorten SharedMutex tests that timeout under ASAN
authorNathan Bronson <ngbronson@fb.com>
Thu, 25 Feb 2016 04:28:37 +0000 (20:28 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Thu, 25 Feb 2016 05:20:27 +0000 (21:20 -0800)
Summary:New ASAN options are more thorough but slower, resulting
in timeouts for some tests.  Decreasing their internal loop count to
compensate.

Reviewed By: yfeldblum

Differential Revision: D2973982

fb-gh-sync-id: 67391936d0b4930f99d00358ebb93a1b3ee87140
shipit-source-id: 67391936d0b4930f99d00358ebb93a1b3ee87140

folly/test/SharedMutexTest.cpp

index 47c40b02b2a579b911b6ed63fa6e37ad027bccbf..3710709ec29fdafa04f89e3d4947614b20722d5d 100644 (file)
@@ -1001,14 +1001,14 @@ TEST(SharedMutex, deterministic_mixed_mostly_read_write_prio) {
 TEST(SharedMutex, mixed_mostly_read_read_prio) {
   for (int pass = 0; pass < 5; ++pass) {
     runMixed<atomic, SharedMutexReadPriority, TokenLocker>(
-        50000, 32, 0.1, false);
+        10000, 32, 0.1, false);
   }
 }
 
 TEST(SharedMutex, mixed_mostly_read_write_prio) {
   for (int pass = 0; pass < 5; ++pass) {
     runMixed<atomic, SharedMutexWritePriority, TokenLocker>(
-        50000, 32, 0.1, false);
+        10000, 32, 0.1, false);
   }
 }