Skip to content

Commit

Permalink
Fix thread safety tests after r352549
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352574 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
aaronpuchert committed Jan 30, 2019
1 parent 3928dd6 commit f7d4429
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/PCH/thread-safety-attrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void sls_fun_bad_1() {
}

void sls_fun_bad_2() {
sls_mu.Lock();
sls_mu.Lock(); // expected-note{{mutex acquired here}}
sls_mu.Lock(); // \
// expected-warning{{acquiring mutex 'sls_mu' that is already held}}
sls_mu.Unlock();
Expand Down
2 changes: 1 addition & 1 deletion test/Sema/warn-thread-safety-analysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main() {
Foo_fun1(1); // expected-warning{{calling function 'Foo_fun1' requires holding mutex 'mu2'}} \
expected-warning{{calling function 'Foo_fun1' requires holding mutex 'mu1' exclusively}}

mutex_exclusive_lock(&mu1);
mutex_exclusive_lock(&mu1); // expected-note{{mutex acquired here}}
mutex_shared_lock(&mu2);
Foo_fun1(1);

Expand Down

0 comments on commit f7d4429

Please sign in to comment.