diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-02-25 12:09:25 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-02-25 12:09:25 +0000 |
commit | 9639266321a76932349d5b2dcf20f3e8b662a2f8 (patch) | |
tree | 36f4fe1a79e937ec01b319962f21ef04ff7e5f6a /test/tsan | |
parent | 977baa5d80ffab94f63bfe5a69c6f2981475106b (diff) | |
download | compiler-rt-9639266321a76932349d5b2dcf20f3e8b662a2f8.tar.gz |
Update sanitizers' bash scripts.
* Fix bash scripts to work on FreeBSD (patch by Viktor Kutuzov)
* Update locations of lit tests in check_lint script.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan')
-rw-r--r-- | test/tsan/deadlock_detector_stress_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tsan/deadlock_detector_stress_test.cc b/test/tsan/deadlock_detector_stress_test.cc index 2876581c1..e14eda32a 100644 --- a/test/tsan/deadlock_detector_stress_test.cc +++ b/test/tsan/deadlock_detector_stress_test.cc @@ -71,7 +71,7 @@ class PthreadRWLock { class LockTest { public: - LockTest(size_t n) : n_(n), locks_(new LockType[n]) { } + explicit LockTest(size_t n) : n_(n), locks_(new LockType[n]) { } ~LockTest() { delete [] locks_; } void L(size_t i) { assert(i < n_); @@ -282,7 +282,7 @@ class LockTest { LockType *locks_; }; -int main () { +int main() { { LockTest t(5); t.Test1(); } { LockTest t(5); t.Test2(); } { LockTest t(5); t.Test3(); } |