summaryrefslogtreecommitdiff
path: root/test/tsan/deadlock_detector_stress_test.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-25 12:09:25 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-25 12:09:25 +0000
commit9639266321a76932349d5b2dcf20f3e8b662a2f8 (patch)
tree36f4fe1a79e937ec01b319962f21ef04ff7e5f6a /test/tsan/deadlock_detector_stress_test.cc
parent977baa5d80ffab94f63bfe5a69c6f2981475106b (diff)
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/deadlock_detector_stress_test.cc')
-rw-r--r--test/tsan/deadlock_detector_stress_test.cc4
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(); }