From: Alex Lorenz Date: Wed, 20 Aug 2014 17:29:47 +0000 (+0000) Subject: Test: CoverageMapping: use "RUN: FileCheck" command instead of "RUN: cat | Filecheck". X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9d3f06856af8c4e59616d204c7468fc1baf91f0;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216085 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CoverageMapping/classtemplate.cpp b/test/CoverageMapping/classtemplate.cpp index 8037d09a38..e6938d625a 100644 --- a/test/CoverageMapping/classtemplate.cpp +++ b/test/CoverageMapping/classtemplate.cpp @@ -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 Test { diff --git a/test/CoverageMapping/header.cpp b/test/CoverageMapping/header.cpp index 9de3c4081d..c268191d22 100644 --- a/test/CoverageMapping/header.cpp +++ b/test/CoverageMapping/header.cpp @@ -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" diff --git a/test/CoverageMapping/nestedclass.cpp b/test/CoverageMapping/nestedclass.cpp index 6462eca7cf..aca4abf1a7 100644 --- a/test/CoverageMapping/nestedclass.cpp +++ b/test/CoverageMapping/nestedclass.cpp @@ -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)