diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-06-06 14:08:40 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-06-06 14:08:40 +0000 |
| commit | e674320adec3df480d12a9451058cc8370a78bb7 (patch) | |
| tree | 21e3690346dcc2034bb7d8ba3db84d8923091040 | |
| parent | f6630ecee90012bc9767c16c99ff1283e834c36a (diff) | |
| download | bcm5719-llvm-e674320adec3df480d12a9451058cc8370a78bb7.tar.gz bcm5719-llvm-e674320adec3df480d12a9451058cc8370a78bb7.zip | |
[ASan] make pthread_getschedparam test more robust
llvm-svn: 183411
| -rw-r--r-- | compiler-rt/lib/asan/tests/asan_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc index 6071dce66a8..9bb474dd358 100644 --- a/compiler-rt/lib/asan/tests/asan_test.cc +++ b/compiler-rt/lib/asan/tests/asan_test.cc @@ -1233,10 +1233,10 @@ TEST(AddressSanitizer, pthread_getschedparam) { struct sched_param param; EXPECT_DEATH( pthread_getschedparam(pthread_self(), &policy, Ident(¶m) + 2), - "AddressSanitizer: stack-buffer-overflow"); + "AddressSanitizer: stack-buffer-.*flow"); EXPECT_DEATH( pthread_getschedparam(pthread_self(), Ident(&policy) - 1, ¶m), - "AddressSanitizer: stack-buffer-overflow"); + "AddressSanitizer: stack-buffer-.*flow"); int res = pthread_getschedparam(pthread_self(), &policy, ¶m); ASSERT_EQ(0, res); } |

