Skip to content

Commit d975549

Browse files
Use -ignore-filename-regex option of llvm-cov to exclude references to deleted integration headers
1 parent 050c1fb commit d975549

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libsyclinterface/tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ if(DPCTL_GENERATE_COVERAGE)
5454
COMMAND ${LLVMCov_EXE}
5555
export
5656
-format=lcov
57+
-ignore-filename-regex=/tmp/dpctl_*.h*
5758
-instr-profile=dpctl.profdata
5859
"${object_arg}$<JOIN:$<TARGET_OBJECTS:DPCTLSyclInterface>,;${object_arg}>"
5960
> dpctl.lcov

scripts/gen_coverage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def find_objects():
141141
os.path.join(bin_llvm, "llvm-cov"),
142142
"export",
143143
"-format=lcov",
144+
"-ignore-filename-regex=/tmp/dpctl_*.h*",
144145
"-instr-profile=" + instr_profile_fn,
145146
]
146147
+ objects,

0 commit comments

Comments
 (0)