r216085 - Test: CoverageMapping: use "RUN: FileCheck" command instead of "RUN: cat | Filecheck".
Alex Lorenz
arphaman at gmail.com
Wed Aug 20 10:29:48 PDT 2014
Author: arphaman
Date: Wed Aug 20 12:29:47 2014
New Revision: 216085
URL: http://llvm.org/viewvc/llvm-project?rev=216085&view=rev
Log:
Test: CoverageMapping: use "RUN: FileCheck" command instead of "RUN: cat | Filecheck".
Change the lit RUN commands for 3 tests to use the following pattern
"FileCheck -input-file ..." instead of "cat ... | FileCheck ..." as
suggested by Justin Bogner.
Modified:
cfe/trunk/test/CoverageMapping/classtemplate.cpp
cfe/trunk/test/CoverageMapping/header.cpp
cfe/trunk/test/CoverageMapping/nestedclass.cpp
Modified: cfe/trunk/test/CoverageMapping/classtemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CoverageMapping/classtemplate.cpp?rev=216085&r1=216084&r2=216085&view=diff
==============================================================================
--- cfe/trunk/test/CoverageMapping/classtemplate.cpp (original)
+++ cfe/trunk/test/CoverageMapping/classtemplate.cpp Wed Aug 20 12:29:47 2014
@@ -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
-// 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
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-CONSTRUCTOR
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-GETTER
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-SETTER
template<class TT>
class Test {
Modified: cfe/trunk/test/CoverageMapping/header.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CoverageMapping/header.cpp?rev=216085&r1=216084&r2=216085&view=diff
==============================================================================
--- cfe/trunk/test/CoverageMapping/header.cpp (original)
+++ cfe/trunk/test/CoverageMapping/header.cpp Wed Aug 20 12:29:47 2014
@@ -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
-// 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
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-FUNC
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-STATIC-FUNC
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-STATIC-FUNC2
#include "Inputs/header1.h"
Modified: cfe/trunk/test/CoverageMapping/nestedclass.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CoverageMapping/nestedclass.cpp?rev=216085&r1=216084&r2=216085&view=diff
==============================================================================
--- cfe/trunk/test/CoverageMapping/nestedclass.cpp (original)
+++ cfe/trunk/test/CoverageMapping/nestedclass.cpp Wed Aug 20 12:29:47 2014
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name nestedclass.cpp %s > %tmapping
-// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-OUTER
-// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-INNER
-// RUN: cat %tmapping | FileCheck %s --check-prefix=CHECK-INNERMOST
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-OUTER
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-INNER
+// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-INNERMOST
struct Test { // CHECK-OUTER: emitTest
void emitTest() { // CHECK-OUTER: File 0, [[@LINE]]:19 -> [[@LINE+2]]:4 = #0 (HasCodeBefore = 0)
More information about the cfe-commits
mailing list