diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2018-06-11 21:04:24 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2018-06-11 21:04:24 +0000 |
commit | f0762ed4b1a94a9d4f5fafabb41708cd1e09057f (patch) | |
tree | be07caecec550a1330896f0c73235785e5d30dfc /test/sanitizer_common | |
parent | dfa62fd314bada8a38e6578ded49ae8679b3108e (diff) |
[Sanitizers] %tool_options -> %env_tool_opts in allocator_returns_null.cc
Use proper substitution in the common allocator_returns_null.cc test.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common')
-rw-r--r-- | test/sanitizer_common/TestCases/allocator_returns_null.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/sanitizer_common/TestCases/allocator_returns_null.cc b/test/sanitizer_common/TestCases/allocator_returns_null.cc index 9d696156f..425e7f316 100644 --- a/test/sanitizer_common/TestCases/allocator_returns_null.cc +++ b/test/sanitizer_common/TestCases/allocator_returns_null.cc @@ -6,33 +6,33 @@ // // RUN: %clangxx -O0 %s -o %t // RUN: not %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mCRASH -// RUN: %tool_options=allocator_may_return_null=0 not %run %t malloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t malloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-mCRASH -// RUN: %tool_options=allocator_may_return_null=1 %run %t malloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=1 %run %t malloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NULL -// RUN: %tool_options=allocator_may_return_null=0 not %run %t calloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t calloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-cCRASH -// RUN: %tool_options=allocator_may_return_null=1 %run %t calloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=1 %run %t calloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NULL -// RUN: %tool_options=allocator_may_return_null=0 not %run %t calloc-overflow 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t calloc-overflow 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-coCRASH -// RUN: %tool_options=allocator_may_return_null=1 %run %t calloc-overflow 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=1 %run %t calloc-overflow 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NULL -// RUN: %tool_options=allocator_may_return_null=0 not %run %t realloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t realloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-rCRASH -// RUN: %tool_options=allocator_may_return_null=1 %run %t realloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=1 %run %t realloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NULL -// RUN: %tool_options=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-mrCRASH -// RUN: %tool_options=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NULL -// RUN: %tool_options=allocator_may_return_null=0 not %run %t new 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t new 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-nCRASH -// RUN: %tool_options=allocator_may_return_null=1 not %run %t new 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=1 not %run %t new 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-nCRASH-OOM -// RUN: %tool_options=allocator_may_return_null=0 not %run %t new-nothrow 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=0 not %run %t new-nothrow 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-nnCRASH -// RUN: %tool_options=allocator_may_return_null=1 %run %t new-nothrow 2>&1 \ +// RUN: %env_tool_opts=allocator_may_return_null=1 %run %t new-nothrow 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NULL // TODO(alekseyshl): win32 is disabled due to failing errno tests, fix it there. |