[tsan] Relax stack trace check
authorVitaly Buka <vitalybuka@google.com>
Wed, 29 Apr 2020 06:51:03 +0000 (23:51 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 29 Apr 2020 06:57:03 +0000 (23:57 -0700)
With GCC 8 stack is different.

compiler-rt/test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cpp
compiler-rt/test/sanitizer_common/TestCases/Linux/pvalloc-overflow.cpp
compiler-rt/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cpp

index 7b119e6..ef7f1cb 100644 (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
index c646243..f0e556e 100644 (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
index 0b8e366..70fba25 100644 (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