summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2016-12-16 18:44:01 +0000
committerKuba Mracek <mracek@apple.com>2016-12-16 18:44:01 +0000
commitf1719e454d69859f99494686b99f6eb395f4117a (patch)
tree9a518caf1c4bb247e801373fb79c96def521c25e /test
parent235999884ba7361b30d675ee51b6c3871965cfcd (diff)
Follow-up for r289831: Lower the unjoined thread count to 100 in the libcxx-future.mm testcase.
Turns out 1000 unjoined threads are a bit too rough in certain environments. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@289971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/tsan/Darwin/libcxx-future.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/Darwin/libcxx-future.mm b/test/tsan/Darwin/libcxx-future.mm
index f004d7b38..902f267ec 100644
--- a/test/tsan/Darwin/libcxx-future.mm
+++ b/test/tsan/Darwin/libcxx-future.mm
@@ -12,7 +12,7 @@ int main(int argc, const char *argv[]) {
std::vector<std::thread> threads;
- for (int i = 0; i < 1000; i++) {
+ for (int i = 0; i < 100; i++) {
std::packaged_task<int(void)> task(my_task);
std::future<int> future = task.get_future();
threads.push_back(std::thread(std::move(task)));