[llvm-commits] [compiler-rt] r150386 - in /compiler-rt/trunk/lib/asan: Makefile.old output_tests/global-overflow.cc output_tests/large_func_test.cc output_tests/null_deref.cc output_tests/use-after-free.cc
Alexey Samsonov
samsonov at google.com
Mon Feb 13 06:18:36 PST 2012
Author: samsonov
Date: Mon Feb 13 08:18:36 2012
New Revision: 150386
URL: http://llvm.org/viewvc/llvm-project?rev=150386&view=rev
Log:
AddressSanitizer: re-enable lint for output tests
Modified:
compiler-rt/trunk/lib/asan/Makefile.old
compiler-rt/trunk/lib/asan/output_tests/global-overflow.cc
compiler-rt/trunk/lib/asan/output_tests/large_func_test.cc
compiler-rt/trunk/lib/asan/output_tests/null_deref.cc
compiler-rt/trunk/lib/asan/output_tests/use-after-free.cc
Modified: compiler-rt/trunk/lib/asan/Makefile.old
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/Makefile.old?rev=150386&r1=150385&r2=150386&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/Makefile.old (original)
+++ compiler-rt/trunk/lib/asan/Makefile.old Mon Feb 13 08:18:36 2012
@@ -338,7 +338,7 @@
third_party/cpplint/cpplint.py --filter=$(LLVM_LINT_FILTER) $(ADDRESS_SANITIZER_CPP)
third_party/cpplint/cpplint.py --filter=$(RTL_LINT_FITLER) asan_*.cc asan_*.h
third_party/cpplint/cpplint.py --filter=$(RTL_LINT_FITLER) interception/interception*.h interception/interception*.cc
- third_party/cpplint/cpplint.py --filter=$(TEST_LINT_FITLER) tests/*.cc
+ third_party/cpplint/cpplint.py --filter=$(TEST_LINT_FITLER) tests/*.cc output_tests/*.cc
get_third_party:
rm -rf third_party
Modified: compiler-rt/trunk/lib/asan/output_tests/global-overflow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/output_tests/global-overflow.cc?rev=150386&r1=150385&r2=150386&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/output_tests/global-overflow.cc (original)
+++ compiler-rt/trunk/lib/asan/output_tests/global-overflow.cc Mon Feb 13 08:18:36 2012
@@ -9,7 +9,8 @@
int res = YYY[argc * 10]; // BOOOM
// Check-Common: {{READ of size 1 at 0x.* thread T0}}
// Check-Common: {{ #0 0x.* in main .*global-overflow.cc:9}}
- // Check-Common: {{0x.* is located 0 bytes to the right of global variable .*YYY.* of size 10}}
+ // Check-Common: {{0x.* is located 0 bytes to the right of global variable}}
+ // Check-Common: {{.*YYY.* of size 10}}
res += XXX[argc] + ZZZ[argc];
return res;
}
Modified: compiler-rt/trunk/lib/asan/output_tests/large_func_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/output_tests/large_func_test.cc?rev=150386&r1=150385&r2=150386&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/output_tests/large_func_test.cc (original)
+++ compiler-rt/trunk/lib/asan/output_tests/large_func_test.cc Mon Feb 13 08:18:36 2012
@@ -32,7 +32,8 @@
delete x;
}
-// Check-Common: {{.*ERROR: AddressSanitizer heap-buffer-overflow on address 0x.* at pc 0x.* bp 0x.* sp 0x.*}}
+// Check-Common: {{.*ERROR: AddressSanitizer heap-buffer-overflow on address}}
+// Check-Common: {{0x.* at pc 0x.* bp 0x.* sp 0x.*}}
// Check-Common: {{READ of size 4 at 0x.* thread T0}}
// Check-Common: {{ #0 0x.* in LargeFunction .*large_func_test.cc:15}}
// Check-Common: {{ #1 0x.* in main .*large_func_test.cc:3[012]}}
Modified: compiler-rt/trunk/lib/asan/output_tests/null_deref.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/output_tests/null_deref.cc?rev=150386&r1=150385&r2=150386&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/output_tests/null_deref.cc (original)
+++ compiler-rt/trunk/lib/asan/output_tests/null_deref.cc Mon Feb 13 08:18:36 2012
@@ -6,7 +6,8 @@
NullDeref((int*)0);
}
-// Check-Common: {{.*ERROR: AddressSanitizer crashed on unknown address 0x0*00028 .*pc 0x.*}}
+// Check-Common: {{.*ERROR: AddressSanitizer crashed on unknown address}}
+// Check-Common: {{0x0*00028 .*pc 0x.*}}
// Check-Common: {{AddressSanitizer can not provide additional info. ABORTING}}
// atos on Mac cannot resolve the file:line info for frame 0 on the O1 level
Modified: compiler-rt/trunk/lib/asan/output_tests/use-after-free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/output_tests/use-after-free.cc?rev=150386&r1=150385&r2=150386&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/output_tests/use-after-free.cc (original)
+++ compiler-rt/trunk/lib/asan/output_tests/use-after-free.cc Mon Feb 13 08:18:36 2012
@@ -5,7 +5,8 @@
return x[5];
}
-// Check-Common: {{.*ERROR: AddressSanitizer heap-use-after-free on address 0x.* at pc 0x.* bp 0x.* sp 0x.*}}
+// Check-Common: {{.*ERROR: AddressSanitizer heap-use-after-free on address}}
+// Check-Common: {{0x.* at pc 0x.* bp 0x.* sp 0x.*}}
// Check-Common: {{READ of size 1 at 0x.* thread T0}}
// Check-Common: {{ #0 0x.* in main .*use-after-free.cc:5}}
// Check-Common: {{0x.* is located 5 bytes inside of 10-byte region .0x.*,0x.*}}
More information about the llvm-commits
mailing list