summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2014-04-22 10:53:57 +0000
committerAlexander Potapenko <glider@google.com>2014-04-22 10:53:57 +0000
commit6e647c13e451dc57f01e96d1d1dafc8c9b406959 (patch)
tree36ac561da5f3669130ff4db08e4aa992ba59efb0
parent70fa72d34037bc7181c22c1234108ccdc26cf8d7 (diff)
downloadbcm5719-llvm-6e647c13e451dc57f01e96d1d1dafc8c9b406959.tar.gz
bcm5719-llvm-6e647c13e451dc57f01e96d1d1dafc8c9b406959.zip
[ASan] Fixed the expectation for Darwin memset test.
Added a comment about keeping the Linux/Darwin test versions in sync. llvm-svn: 206881
-rw-r--r--compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc4
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc b/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc
index f2b9dd4eda9..a079f8579cf 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc
+++ b/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc
@@ -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
diff --git a/compiler-rt/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc b/compiler-rt/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc
index 8a63634a0b2..4d6d750bd6d 100644
--- a/compiler-rt/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc
+++ b/compiler-rt/test/asan/TestCases/Linux/interception-in-shared-lib-test.cc
@@ -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
OpenPOWER on IntegriCloud