From: Nathan Bronson Date: Thu, 25 Feb 2016 04:28:37 +0000 (-0800) Subject: shorten SharedMutex tests that timeout under ASAN X-Git-Tag: deprecate-dynamic-initializer~39 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ddb7850ce6998d41b5f2e76492ec4f362d74127c;p=folly.git shorten SharedMutex tests that timeout under ASAN 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 --- diff --git a/folly/test/SharedMutexTest.cpp b/folly/test/SharedMutexTest.cpp index 47c40b02..3710709e 100644 --- a/folly/test/SharedMutexTest.cpp +++ b/folly/test/SharedMutexTest.cpp @@ -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( - 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( - 50000, 32, 0.1, false); + 10000, 32, 0.1, false); } }