]> granicus.if.org Git - clang/commitdiff
Test: Coverage Mapping: add missing RUN commands
authorAlex Lorenz <arphaman@gmail.com>
Tue, 19 Aug 2014 20:51:54 +0000 (20:51 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 19 Aug 2014 20:51:54 +0000 (20:51 +0000)
Add the llvm-lit RUN commands for the two coverage mapping tests
that filecheck a temporary file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216020 91177308-0d34-0410-b5e6-96231b3b80d8

test/CoverageMapping/classtemplate.cpp
test/CoverageMapping/header.cpp

index 95b84c370d934139704761e4027577c36cb26bee..8037d09a382747e98252323930f3c9639c6bca9d 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -triple %itanium_abi_triple -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name classtemplate.cpp %s > %tmapping
-// cat %tmapping | FileCheck %s --check-prefix=CHECK-CONSTRUCTOR
-// cat %tmapping | FileCheck %s --check-prefix=CHECK-GETTER
-// cat %tmapping | FileCheck %s --check-prefix=CHECK-SETTER
+// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-CONSTRUCTOR
+// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-GETTER
+// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-SETTER
 
 template<class TT>
 class Test {
index 9e4ab54ebde30be13917a083578c71ab7ec758d0..9de3c4081d0f76b1bb2f35ff1bde8c23952c28d3 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name tu1.cpp %s > %tmapping
-// cat %tmapping | FileCheck %s --check-prefix=CHECK-FUNC
-// cat %tmapping | FileCheck %s --check-prefix=CHECK-STATIC-FUNC
-// cat %tmapping | FileCheck %s --check-prefix=CHECK-STATIC-FUNC2
+// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-FUNC
+// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-STATIC-FUNC
+// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-STATIC-FUNC2
 
 #include "Inputs/header1.h"
 
@@ -14,14 +14,14 @@ int main() {
 // CHECK-FUNC: File 0, 4:25 -> 11:2 = #0 (HasCodeBefore = 0)
 // CHECK-FUNC: File 0, 6:15 -> 8:4 = #1 (HasCodeBefore = 0)
 // CHECK-FUNC: File 0, 8:10 -> 10:4 = (#0 - #1) (HasCodeBefore = 0)
-// CHECK-FUNC: Expansion,File 1, 3:10 -> 3:28 = #0 (HasCodeBefore = 0, Expanded file = 0)
+// CHECK-FUNC: Expansion,File 1, 6:10 -> 6:28 = #0 (HasCodeBefore = 0, Expanded file = 0)
 
 // CHECK-STATIC-FUNC: static_func
 // CHECK-STATIC-FUNC: File 0, 12:32 -> 20:2 = #0 (HasCodeBefore = 0)
 // CHECK-STATIC-FUNC: File 0, 14:15 -> 16:4 = #1 (HasCodeBefore = 0)
-// CHECK-STATIC-FUNC File 0, 16:10 -> 18:4 = (#0 - #1) (HasCodeBefore = 0)
-// CHECK-STATIC-FUNC: Expansion,File 1, 3:10 -> 3:28 = #0 (HasCodeBefore = 0, Expanded file = 0)
+// CHECK-STATIC-FUNC: File 0, 16:10 -> 18:4 = (#0 - #1) (HasCodeBefore = 0)
+// CHECK-STATIC-FUNC: Expansion,File 1, 6:10 -> 6:28 = #0 (HasCodeBefore = 0, Expanded file = 0)
 
 // CHECK-STATIC-FUNC2: static_func2
 // CHECK-STATIC-FUNC2: File 0, 21:33 -> 29:2 = 0 (HasCodeBefore = 0)
-// CHECK-STATIC-FUNC2: Expansion,File 1, 3:10 -> 3:28 = 0 (HasCodeBefore = 0, Expanded file = 0)
+// CHECK-STATIC-FUNC2: Expansion,File 1, 6:10 -> 6:28 = 0 (HasCodeBefore = 0, Expanded file = 0)