diff --git a/experiment/measurer/coverage_utils.py b/experiment/measurer/coverage_utils.py index 42ca57385..c6bd8bed1 100644 --- a/experiment/measurer/coverage_utils.py +++ b/experiment/measurer/coverage_utils.py @@ -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: @@ -272,6 +273,7 @@ def generate_json_summary(coverage_binary, '-skip-expansions', coverage_binary, f'-instr-profile={profdata_file}', + '-no-warn' ] if summary_only: diff --git a/experiment/measurer/test_measure_manager.py b/experiment/measurer/test_measure_manager.py index 7b6521869..c812239ec 100644 --- a/experiment/measurer/test_measure_manager.py +++ b/experiment/measurer/test_measure_manager.py @@ -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