[compiler-rt] r206881 - [ASan] Fixed the expectation for Darwin memset test.

Alexander Potapenko glider at google.com
Tue Apr 22 03:53:57 PDT 2014


Author: glider
Date: Tue Apr 22 05:53:57 2014
New Revision: 206881

URL: http://llvm.org/viewvc/llvm-project?rev=206881&view=rev
Log:
[ASan] Fixed the expectation for Darwin memset test.
Added a comment about keeping the Linux/Darwin test versions in sync.


Modified:
    compiler-rt/trunk/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc
    compiler-rt/trunk/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc?rev=206881&r1=206880&r2=206881&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc Tue Apr 22 05:53:57 2014
@@ -1,4 +1,6 @@
 // Check that memset() call from a shared library gets intercepted.
+// Please always keep this file in sync with
+// ../Linux/interception-in-shared-lib-test.cc.
 
 // RUN: %clangxx_asan -O0 %s -DSHARED_LIB \
 // RUN:     -shared -o %T/libinterception-in-shared-lib-test.so \
@@ -24,7 +26,7 @@ int main(int argc, char *argv[]) {
   my_memset(buf, 11);
   // CHECK: {{.*ERROR: AddressSanitizer: stack-buffer-overflow}}
   // CHECK: {{WRITE of size 11 at 0x.* thread T0}}
-  // CHECK: {{    #0 0x.* in my_memset .*interception-in-shared-lib-test.cc:17}}
+  // CHECK: {{0x.* in my_memset .*interception-in-shared-lib-test.cc:19}}
   return 0;
 }
 #endif

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc?rev=206881&r1=206880&r2=206881&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc Tue Apr 22 05:53:57 2014
@@ -1,4 +1,6 @@
 // Check that memset() call from a shared library gets intercepted.
+// Please always keep this file in sync with
+// ../Darwin/interception-in-shared-lib-test.cc.
 
 // RUN: %clangxx_asan -O0 %s -DSHARED_LIB \
 // RUN:     -shared -o %T/libinterception-in-shared-lib-test.so \
@@ -24,7 +26,7 @@ int main(int argc, char *argv[]) {
   my_memset(buf, 11);
   // CHECK: {{.*ERROR: AddressSanitizer: stack-buffer-overflow}}
   // CHECK: {{WRITE of size 11 at 0x.* thread T0}}
-  // CHECK: {{0x.* in my_memset .*interception-in-shared-lib-test.cc:17}}
+  // CHECK: {{0x.* in my_memset .*interception-in-shared-lib-test.cc:19}}
   return 0;
 }
 #endif





More information about the llvm-commits mailing list