diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-19 09:34:13 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-19 09:34:13 +0000 |
commit | c3cc767cfdcbd358536d7a730c9f4fd71e97dc18 (patch) | |
tree | 901d83d919aecff319faefbdedc92a4618238059 /test/tsan/mutex_cycle2.c | |
parent | 4f4dc1fa6d0b30630b43b69508688a0d91ef29d6 (diff) | |
download | compiler-rt-c3cc767cfdcbd358536d7a730c9f4fd71e97dc18.tar.gz |
tsan: align default value of detect_deadlocks flag with actual behavior
I tricked myself into thinking that deadlock detection is off by default in TSan by looking at the default value of the detect_deadlocks flag and outdated docs. (Created a pull request to update docs.)
I even managed to confuse others: https://groups.google.com/forum/#!topic/thread-sanitizer/xYvnAYwtoDk
However, the default value is overwritten in code (TSan_flags.cc:InitializeFlags). The TSan/deadlock tests also rely on this
This changes aligns the default value of the flag with the actual default behavior.
Author: yln (Julian Lettner)
Reviewed in: https://reviews.llvm.org/D55846
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/mutex_cycle2.c')
-rw-r--r-- | test/tsan/mutex_cycle2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/mutex_cycle2.c b/test/tsan/mutex_cycle2.c index 32659d4ee..0dc96d07c 100644 --- a/test/tsan/mutex_cycle2.c +++ b/test/tsan/mutex_cycle2.c @@ -1,5 +1,5 @@ // RUN: %clangxx_tsan %s -o %t -// RUN: not %run %t 2>&1 | FileCheck %s +// RUN: not %run %t 2>&1 | FileCheck %s // RUN: %env_tsan_opts=detect_deadlocks=1 not %run %t 2>&1 | FileCheck %s // RUN: %env_tsan_opts=detect_deadlocks=0 %run %t 2>&1 | FileCheck %s --check-prefix=DISABLED // RUN: echo "deadlock:main" > %t.supp |