mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
llvm-cov: Fix dropped lines when filters were applied
Uncovered lines in the middle of a covered region weren't being shown when filtering to a particular function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %S/Inputs/lineExecutionCounts.profdata -no-colors -filename-equivalence %s | FileCheck %s
|
||||
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %S/Inputs/lineExecutionCounts.profdata -no-colors -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s
|
||||
// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %S/Inputs/lineExecutionCounts.profdata -no-colors -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s
|
||||
|
||||
// before any coverage // WHOLE-FILE: | [[@LINE]]|// before
|
||||
// FILTER-NOT: | [[@LINE-1]]|// before
|
||||
int main() { // CHECK: 1| [[@LINE]]|int main(
|
||||
int x = 0; // CHECK: 1| [[@LINE]]| int x
|
||||
// CHECK: 1| [[@LINE]]|
|
||||
@@ -20,6 +23,8 @@ int main() { // CHECK: 1| [[@LINE]]|int main(
|
||||
// CHECK: 1| [[@LINE]]|
|
||||
return 0; // CHECK: 1| [[@LINE]]| return
|
||||
} // CHECK: 1| [[@LINE]]|}
|
||||
// after coverage // WHOLE-FILE: | [[@LINE]]|// after
|
||||
// FILTER-NOT: | [[@LINE-1]]|// after
|
||||
|
||||
// llvm-cov doesn't work on big endian yet
|
||||
// XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
|
||||
|
||||
Reference in New Issue
Block a user