summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2014-04-25 07:42:55 +0000
committerDmitry Vyukov <dvyukov@google.com>2014-04-25 07:42:55 +0000
commitc845decce1eaf0047b29bf44fef758ccd873be2d (patch)
tree613602abd1533386dd36c7fbcfb710ccfd844571 /compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
parent3212b18bbf8458cc9eabbb8938ffcef68af7473c (diff)
downloadbcm5719-llvm-c845decce1eaf0047b29bf44fef758ccd873be2d.tar.gz
bcm5719-llvm-c845decce1eaf0047b29bf44fef758ccd873be2d.zip
tsan: better reports for "double lock of a mutex"
+ fixes crashes due to races on symbolizer, see: https://code.google.com/p/thread-sanitizer/issues/detail?id=55 llvm-svn: 207204
Diffstat (limited to 'compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc')
-rw-r--r--compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc b/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
index 33ddaaae2dd..3227d27ec92 100644
--- a/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
+++ b/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
@@ -42,6 +42,7 @@ static const char *options1 =
" report_bugs=0"
" report_thread_leaks=0"
" report_destroy_locked=0"
+ " report_mutex_bugs=0"
" report_signal_unsafe=0"
" report_atomic_races=0"
" force_seq_cst_atomics=0"
@@ -86,6 +87,7 @@ static const char *options2 =
" report_bugs=true"
" report_thread_leaks=true"
" report_destroy_locked=true"
+ " report_mutex_bugs=true"
" report_signal_unsafe=true"
" report_atomic_races=true"
" force_seq_cst_atomics=true"
@@ -130,6 +132,7 @@ void VerifyOptions1(Flags *f) {
EXPECT_EQ(f->report_bugs, 0);
EXPECT_EQ(f->report_thread_leaks, 0);
EXPECT_EQ(f->report_destroy_locked, 0);
+ EXPECT_EQ(f->report_mutex_bugs, 0);
EXPECT_EQ(f->report_signal_unsafe, 0);
EXPECT_EQ(f->report_atomic_races, 0);
EXPECT_EQ(f->force_seq_cst_atomics, 0);
@@ -174,6 +177,7 @@ void VerifyOptions2(Flags *f) {
EXPECT_EQ(f->report_bugs, true);
EXPECT_EQ(f->report_thread_leaks, true);
EXPECT_EQ(f->report_destroy_locked, true);
+ EXPECT_EQ(f->report_mutex_bugs, true);
EXPECT_EQ(f->report_signal_unsafe, true);
EXPECT_EQ(f->report_atomic_races, true);
EXPECT_EQ(f->force_seq_cst_atomics, true);
OpenPOWER on IntegriCloud