Skip to content

Commit

Permalink
llvm-cov no-warn
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump committed Aug 9, 2024
1 parent 9a3770b commit 3f43fcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions experiment/measurer/coverage_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def generate_coverage_report(self):
'-n',
self.binary_file,
f'-instr-profile={self.merged_profdata_file}',
'-no-warn'
]
result = new_process.execute(command, expect_zero=False)
if result.retcode != 0:
Expand Down Expand Up @@ -272,6 +273,7 @@ def generate_json_summary(coverage_binary,
'-skip-expansions',
coverage_binary,
f'-instr-profile={profdata_file}',
'-no-warn'
]

if summary_only:
Expand Down
3 changes: 2 additions & 1 deletion experiment/measurer/test_measure_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def test_generate_summary(mocked_get_coverage_binary, mocked_execute,
'llvm-cov', 'export', '-format=text', '-num-threads=1',
'-region-coverage-gt=0', '-skip-expansions',
'/work/coverage-binaries/benchmark-a/fuzz-target',
'-instr-profile=/reports/data.profdata'
'-instr-profile=/reports/data.profdata',
'-no-warn'
]

assert (len(mocked_execute.call_args_list)) == 1
Expand Down

0 comments on commit 3f43fcf

Please sign in to comment.