diff options
author | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2016-08-01 07:24:36 +0000 |
---|---|---|
committer | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2016-08-01 07:24:36 +0000 |
commit | 5402bb5415edeb4995b2a3cde33b2652cabc5c65 (patch) | |
tree | 38336afac90abd40b3f179abc94314d5b6993531 /lib/asan/asan_win.cc | |
parent | df1cd1fd1d235cb484f7653f2e24e7b59bccb3fb (diff) |
[asan] Reduce flakiness of heavy recovery mode tests.
When we run halt_on_error-torture.cc with 10 threads and 20 iterations with halt_on_error=false:suppress_equal_pcs=false, we write 200 reports to 10.txt file and sometimes have collisions.
We have CHECK-COLLISION check that greps 'AddressSanitizer: nested bug in the same thread, aborting' message in 10.txt, but it doesn't contain this line.
If I don't redirect stderr > 10.txt 'AddressSanitizer: nested bug in the same thread, aborting' is printed to my screen as expected.
Same happens for halt_on_error_suppress_equal_pcs.cc and halt_on_error-torture.cc. This happens because of kernel bug: https://lkml.org/lkml/2014/2/17/324
Furtunately, we can fix these tests by implicitly setting O_APPEND for opened files (use >> instead of > for stderr redirection).
Differential Revision: https://reviews.llvm.org/D22921
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@277324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_win.cc')
0 files changed, 0 insertions, 0 deletions