[tsan] Relax stack trace check

With GCC 8 stack is different.
This commit is contained in:
Vitaly Buka 2020-04-28 23:51:03 -07:00
parent 20df6038ee
commit d1fafa40b8
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ int main(int argc, char **argv) {
// CHECK: {{ERROR: .*Sanitizer: invalid alignment requested in aligned_alloc}}
// Handle a case when aligned_alloc is aliased by memalign.
// CHECK: {{#0 .*}}{{aligned_alloc|memalign}}
// CHECK: {{#1 .*main .*aligned_alloc-alignment.cpp:}}[[@LINE-4]]
// CHECK: {{#[12] .*main .*aligned_alloc-alignment.cpp:}}[[@LINE-4]]
// CHECK: {{SUMMARY: .*Sanitizer: invalid-aligned-alloc-alignment}}
// The NULL pointer is printed differently on different systems, while (long)0

View File

@ -35,7 +35,7 @@ int main(int argc, char *argv[]) {
}
// CHECK: {{ERROR: .*Sanitizer: pvalloc parameters overflow: size .* rounded up to system page size .* cannot be represented in type size_t}}
// CHECK: {{#0 .*pvalloc}}
// CHECK: {{#1 .*main .*pvalloc-overflow.cpp:}}
// CHECK: {{#[12] .*main .*pvalloc-overflow.cpp:}}
// CHECK: {{SUMMARY: .*Sanitizer: pvalloc-overflow}}
// The NULL pointer is printed differently on different systems, while (long)0

View File

@ -35,7 +35,7 @@ int main(int argc, char **argv) {
int res = posix_memalign(&p, alignment, 100);
// CHECK: {{ERROR: .*Sanitizer: invalid alignment requested in posix_memalign}}
// CHECK: {{#0 .*posix_memalign}}
// CHECK: {{#1 .*main .*posix_memalign-alignment.cpp:}}[[@LINE-3]]
// CHECK: {{#[12] .*main .*posix_memalign-alignment.cpp:}}[[@LINE-3]]
// CHECK: {{SUMMARY: .*Sanitizer: invalid-posix-memalign-alignment}}
// The NULL pointer is printed differently on different systems, while (long)0