From 3f43fcf0d5dd7376c76a9e8942e95e54de2c7e68 Mon Sep 17 00:00:00 2001 From: Addison Crump Date: Fri, 9 Aug 2024 14:10:08 +0200 Subject: [PATCH] llvm-cov no-warn --- experiment/measurer/coverage_utils.py | 2 ++ experiment/measurer/test_measure_manager.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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