[PATCH] D97931: [asan][test] Handle Solaris in large_func_test.cpp etc.
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 16:31:12 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGab8a46024157: [asan][test] Handle Solaris in large_func_test.cpp etc. (authored by ro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97931/new/
https://reviews.llvm.org/D97931
Files:
compiler-rt/test/asan/TestCases/large_func_test.cpp
compiler-rt/test/asan/TestCases/use-after-delete.cpp
Index: compiler-rt/test/asan/TestCases/use-after-delete.cpp
===================================================================
--- compiler-rt/test/asan/TestCases/use-after-delete.cpp
+++ compiler-rt/test/asan/TestCases/use-after-delete.cpp
@@ -17,15 +17,17 @@
// CHECK: {{freed by thread T0 here:}}
// CHECK-Linux: {{ #0 0x.* in operator delete\[\]}}
+ // CHECK-SunOS: {{ #0 0x.* in operator delete\[\]}}
// CHECK-Windows:{{ #0 0x.* in operator delete\[\]}}
// CHECK-Darwin: {{ #0 0x.* in .*_Zda}}
- // CHECK: {{ #1 0x.* in main .*use-after-delete.cpp:}}[[@LINE-12]]
+ // CHECK: {{ #1 0x.* in main .*use-after-delete.cpp:}}[[@LINE-13]]
// CHECK: {{previously allocated by thread T0 here:}}
// CHECK-Linux: {{ #0 0x.* in operator new\[\]}}
+ // CHECK-SunOS: {{ #0 0x.* in operator new\[\]}}
// CHECK-Windows:{{ #0 0x.* in operator new\[\]}}
// CHECK-Darwin: {{ #0 0x.* in .*_Zna}}
- // CHECK: {{ #1 0x.* in main .*use-after-delete.cpp:}}[[@LINE-19]]
+ // CHECK: {{ #1 0x.* in main .*use-after-delete.cpp:}}[[@LINE-21]]
// CHECK: Shadow byte legend (one shadow byte represents {{[0-9]+}} application bytes):
Index: compiler-rt/test/asan/TestCases/large_func_test.cpp
===================================================================
--- compiler-rt/test/asan/TestCases/large_func_test.cpp
+++ compiler-rt/test/asan/TestCases/large_func_test.cpp
@@ -25,8 +25,9 @@
// atos incorrectly extracts the symbol name for the static functions on
// Darwin.
// CHECK-Linux: {{#0 0x.* in LargeFunction.*large_func_test.cpp:}}[[@LINE-3]]
- // CHECK-Windows:{{#0 0x.* in LargeFunction.*large_func_test.cpp:}}[[@LINE-4]]
- // CHECK-Darwin: {{#0 0x.* in .*LargeFunction.*large_func_test.cpp}}:[[@LINE-5]]
+ // CHECK-SunOS: {{#0 0x.* in LargeFunction.*large_func_test.cpp:}}[[@LINE-4]]
+ // CHECK-Windows:{{#0 0x.* in LargeFunction.*large_func_test.cpp:}}[[@LINE-5]]
+ // CHECK-Darwin: {{#0 0x.* in .*LargeFunction.*large_func_test.cpp}}:[[@LINE-6]]
x[10]++;
x[11]++;
@@ -47,8 +48,9 @@
// CHECK: {{0x.* is located 12 bytes to the right of 400-byte region}}
// CHECK: {{allocated by thread T0 here:}}
// CHECK-Linux: {{ #0 0x.* in operator new}}
+ // CHECK-SunOS: {{ #0 0x.* in operator new}}
// CHECK-Windows:{{ #0 0x.* in operator new}}
// CHECK-Darwin: {{ #0 0x.* in .*_Zna}}
- // CHECK: {{ #1 0x.* in main .*large_func_test.cpp:}}[[@LINE-8]]
+ // CHECK: {{ #1 0x.* in main .*large_func_test.cpp:}}[[@LINE-9]]
delete[] x;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97931.328690.patch
Type: text/x-patch
Size: 2572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210306/891431b8/attachment.bin>
More information about the llvm-commits
mailing list