[compiler-rt] efba642 - Revert "[tsan] Relax stack trace check"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 23:57:16 PDT 2020
Author: Vitaly Buka
Date: 2020-04-28T23:57:03-07:00
New Revision: efba642171c0f69db2f57562e35e5e5c91a6b7a4
URL: https://github.com/llvm/llvm-project/commit/efba642171c0f69db2f57562e35e5e5c91a6b7a4
DIFF: https://github.com/llvm/llvm-project/commit/efba642171c0f69db2f57562e35e5e5c91a6b7a4.diff
LOG: Revert "[tsan] Relax stack trace check"
Edited hwasan by mistake.
This reverts commit a3b942edc8074dce139bac0643b568f840d7a6a0.
Added:
Modified:
compiler-rt/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cpp
compiler-rt/test/hwasan/TestCases/Linux/pvalloc-overflow.cpp
compiler-rt/test/hwasan/TestCases/Posix/posix_memalign-alignment.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cpp b/compiler-rt/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cpp
index 9a151f4740aa..1a1acb2b8833 100644
--- a/compiler-rt/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cpp
+++ b/compiler-rt/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cpp
@@ -17,7 +17,7 @@ int main() {
void *p = aligned_alloc(17, 100);
// CHECK: ERROR: HWAddressSanitizer: invalid alignment requested in aligned_alloc: 17
// CHECK: {{#0 0x.* in .*}}{{aligned_alloc|memalign}}
- // CHECK: {{#[12] 0x.* in main .*aligned_alloc-alignment.cpp:}}[[@LINE-3]]
+ // CHECK: {{#1 0x.* in main .*aligned_alloc-alignment.cpp:}}[[@LINE-3]]
// CHECK: SUMMARY: HWAddressSanitizer: invalid-aligned-alloc-alignment
untag_printf("pointer after failed aligned_alloc: %zd\n", (size_t)p);
diff --git a/compiler-rt/test/hwasan/TestCases/Linux/pvalloc-overflow.cpp b/compiler-rt/test/hwasan/TestCases/Linux/pvalloc-overflow.cpp
index 7fbe582601ed..2a203028aef8 100644
--- a/compiler-rt/test/hwasan/TestCases/Linux/pvalloc-overflow.cpp
+++ b/compiler-rt/test/hwasan/TestCases/Linux/pvalloc-overflow.cpp
@@ -42,7 +42,7 @@ int main(int argc, char *argv[]) {
// CHECK: {{ERROR: HWAddressSanitizer: pvalloc parameters overflow: size .* rounded up to system page size .* cannot be represented in type size_t}}
// CHECK: {{#0 0x.* in .*pvalloc}}
-// CHECK: {{#[12] 0x.* in main .*pvalloc-overflow.cpp:}}
+// CHECK: {{#1 0x.* in main .*pvalloc-overflow.cpp:}}
// CHECK: SUMMARY: HWAddressSanitizer: pvalloc-overflow
// CHECK-NULL: errno: 12
diff --git a/compiler-rt/test/hwasan/TestCases/Posix/posix_memalign-alignment.cpp b/compiler-rt/test/hwasan/TestCases/Posix/posix_memalign-alignment.cpp
index 6540dfb3751d..5224dcb0ab1f 100644
--- a/compiler-rt/test/hwasan/TestCases/Posix/posix_memalign-alignment.cpp
+++ b/compiler-rt/test/hwasan/TestCases/Posix/posix_memalign-alignment.cpp
@@ -14,7 +14,7 @@ int main() {
int res = posix_memalign(&p, 17, 100);
// CHECK: ERROR: HWAddressSanitizer: invalid alignment requested in posix_memalign: 17
// CHECK: {{#0 0x.* in .*posix_memalign}}
- // CHECK: {{#[12] 0x.* in main .*posix_memalign-alignment.cpp:}}[[@LINE-3]]
+ // CHECK: {{#1 0x.* in main .*posix_memalign-alignment.cpp:}}[[@LINE-3]]
// CHECK: SUMMARY: HWAddressSanitizer: invalid-posix-memalign-alignment
untag_printf("pointer after failed posix_memalign: %zd\n", (size_t)p);
More information about the llvm-commits
mailing list