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 | ed32baa84bb32fd150de6f04e9b73c3e723767c8 (patch) | |
| tree | 7d57e7450318f0836b684e5f26dd1357ce3db307 | |
| parent | 534a104317c675442e74065782aa88bc1f0c2f9b (diff) | |
| download | bcm5719-llvm-ed32baa84bb32fd150de6f04e9b73c3e723767c8.tar.gz bcm5719-llvm-ed32baa84bb32fd150de6f04e9b73c3e723767c8.zip | |
[Sanitizers] %tool_options -> %env_tool_opts in allocator_returns_null.cc
Use proper substitution in the common allocator_returns_null.cc test.
llvm-svn: 334438
| -rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cc b/compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cc index 9d696156fa1..425e7f3165f 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cc +++ b/compiler-rt/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. |

