diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2018-06-09 00:47:37 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2018-06-09 00:47:37 +0000 |
commit | edbb9725b1a9a6e98bd652ad60f132d88a135ca5 (patch) | |
tree | 7a753827f2cfdf22e73310bad1f7a663ec196f11 /test/sanitizer_common/TestCases | |
parent | c6bb0cc2556bfcc55a1e01e522aa66600ad9c102 (diff) |
[MSan] Switch to common aligned allocs tests.
Summary:
Switch to aligned_alloc and posix_memalign tests in sanitizer_common
and delete the MSan-specific ones.
Reviewers: vitalybuka
Subscribers: srhines, kubamracek, delcypher, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D47968
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common/TestCases')
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cc | 6 | ||||
-rw-r--r-- | test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cc | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cc b/test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cc index 042aff4d3..035b5ca7f 100644 --- a/test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cc +++ b/test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cc @@ -1,13 +1,13 @@ -// RUN: %clangxx -O0 %s -o %t +// RUN: %clangxx %collect_stack_traces -O0 %s -o %t // RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t 17 2>&1 | FileCheck %s // RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t 0 2>&1 | FileCheck %s // RUN: %env_tool_opts=allocator_may_return_null=1 %run %t 17 2>&1 | FileCheck %s --check-prefix=CHECK-NULL // RUN: %env_tool_opts=allocator_may_return_null=1 %run %t 0 2>&1 | FileCheck %s --check-prefix=CHECK-NULL -// UNSUPPORTED: android, msan, tsan, ubsan - // REQUIRES: stable-runtime +// UNSUPPORTED: android, tsan, ubsan + #include <assert.h> #include <stdio.h> #include <stdlib.h> diff --git a/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cc b/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cc index 4a417650f..c46540b6b 100644 --- a/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cc +++ b/test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx -O0 %s -o %t +// RUN: %clangxx %collect_stack_traces -O0 %s -o %t // RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t 17 2>&1 | FileCheck %s // RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t 0 2>&1 | FileCheck %s // RUN: %env_tool_opts=allocator_may_return_null=1 %run %t 17 2>&1 | FileCheck %s --check-prefix=CHECK-NULL @@ -6,7 +6,7 @@ // REQUIRES: stable-runtime -// UNSUPPORTED: msan, tsan, ubsan +// UNSUPPORTED: tsan, ubsan #include <assert.h> #include <stdio.h> |