diff options
author | Greg Fitzgerald <gregf@codeaurora.org> | 2014-05-14 00:32:15 +0000 |
---|---|---|
committer | Greg Fitzgerald <gregf@codeaurora.org> | 2014-05-14 00:32:15 +0000 |
commit | 3c1af3e8f5c8043ca041c8fabd7cad9dc9c7cc63 (patch) | |
tree | eea1fc8c5e480eeaedc91a99b90125d29cb21cc8 /test/ubsan/TestCases/Misc | |
parent | 7986f6e4ae9c6b300be49f5684c686d3e48fd94d (diff) |
Add %run to tests that used %T/name.exe
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan/TestCases/Misc')
-rw-r--r-- | test/ubsan/TestCases/Misc/bool.cpp | 2 | ||||
-rw-r--r-- | test/ubsan/TestCases/Misc/bounds.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/ubsan/TestCases/Misc/bool.cpp b/test/ubsan/TestCases/Misc/bool.cpp index e916e7fb3..5fe5cf128 100644 --- a/test/ubsan/TestCases/Misc/bool.cpp +++ b/test/ubsan/TestCases/Misc/bool.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx -fsanitize=bool %s -O3 -o %T/bool.exe && %T/bool.exe 2>&1 | FileCheck %s +// RUN: %clangxx -fsanitize=bool %s -O3 -o %t && %run %t 2>&1 | FileCheck %s unsigned char NotABool = 123; diff --git a/test/ubsan/TestCases/Misc/bounds.cpp b/test/ubsan/TestCases/Misc/bounds.cpp index dc4c4a513..ea59b02fc 100644 --- a/test/ubsan/TestCases/Misc/bounds.cpp +++ b/test/ubsan/TestCases/Misc/bounds.cpp @@ -1,9 +1,9 @@ -// RUN: %clangxx -fsanitize=bounds %s -O3 -o %T/bounds.exe -// RUN: %T/bounds.exe 0 0 0 -// RUN: %T/bounds.exe 1 2 3 -// RUN: %T/bounds.exe 2 0 0 2>&1 | FileCheck %s --check-prefix=CHECK-A-2 -// RUN: %T/bounds.exe 0 3 0 2>&1 | FileCheck %s --check-prefix=CHECK-B-3 -// RUN: %T/bounds.exe 0 0 4 2>&1 | FileCheck %s --check-prefix=CHECK-C-4 +// RUN: %clangxx -fsanitize=bounds %s -O3 -o %t +// RUN: %run %t 0 0 0 +// RUN: %run %t 1 2 3 +// RUN: %run %t 2 0 0 2>&1 | FileCheck %s --check-prefix=CHECK-A-2 +// RUN: %run %t 0 3 0 2>&1 | FileCheck %s --check-prefix=CHECK-B-3 +// RUN: %run %t 0 0 4 2>&1 | FileCheck %s --check-prefix=CHECK-C-4 int main(int argc, char **argv) { int arr[2][3][4] = {}; |