summaryrefslogtreecommitdiff
path: root/test/tsan/fd_dup_race.cc
AgeCommit message (Collapse)Author
2016-04-15[TSAN] Make tsan tests more portable (take 3)Renato Golin
Some tests didn't merge stderr with stdout. Patch by Maxim Kuvyrkov. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266426 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-14Revert "Make tsan tests more portable (take 2)"Renato Golin
This reverts commit r266294, as it broke some buildbots again. :/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266300 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-14Make tsan tests more portable (take 2)Renato Golin
Using stderr more uniformily, avoiding potential races when scanning stdout and stderr output. Patch by Maxim Kuvyrkov. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266294 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-02Revert "[RT] Make tsan tests more portable"Renato Golin
This reverts commit r262476, as it broken the AArch64 VMA42 buildbot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262479 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-02[RT] Make tsan tests more portableRenato Golin
by avoiding potential races when scanning stdout and stderr output. Patch by Maxim Kuvyrkov. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262476 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-25tsan: fix handling of dup2 Dmitry Vyukov
Previously tsan modelled dup2(oldfd, newfd) as write on newfd. We hit several cases where the write lead to false positives: 1. Some software dups a closed pipe in place of a socket before closing the socket (to prevent races actually). 2. Some daemons dup /dev/null in place of stdin/stdout. On the other hand we have not seen cases when write here catches real bugs. So model dup2 as read on newfd instead. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@240687 91177308-0d34-0410-b5e6-96231b3b80d8