[compiler-rt] r208744 - Add %run to tests that used %T/name.exe

Greg Fitzgerald gregf at codeaurora.org
Tue May 13 17:32:15 PDT 2014


Author: garious
Date: Tue May 13 19:32:15 2014
New Revision: 208744

URL: http://llvm.org/viewvc/llvm-project?rev=208744&view=rev
Log:
Add %run to tests that used %T/name.exe

Modified:
    compiler-rt/trunk/test/ubsan/TestCases/Misc/bool.cpp
    compiler-rt/trunk/test/ubsan/TestCases/Misc/bounds.cpp

Modified: compiler-rt/trunk/test/ubsan/TestCases/Misc/bool.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Misc/bool.cpp?rev=208744&r1=208743&r2=208744&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Misc/bool.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Misc/bool.cpp Tue May 13 19:32:15 2014
@@ -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;
 

Modified: compiler-rt/trunk/test/ubsan/TestCases/Misc/bounds.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Misc/bounds.cpp?rev=208744&r1=208743&r2=208744&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Misc/bounds.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Misc/bounds.cpp Tue May 13 19:32:15 2014
@@ -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] = {};





More information about the llvm-commits mailing list