Skip to content

Commit 9cbc358

Browse files
committed
coverage: Tell llvm-cov to show branch information
1 parent 2883634 commit 9cbc358

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/compiletest/src/runtest.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,12 @@ impl<'test> TestCx<'test> {
565565

566566
// Run `llvm-cov show` to produce a coverage report in text format.
567567
let proc_res = self.run_llvm_tool("llvm-cov", |cmd| {
568-
cmd.args(["show", "--format=text", "--show-line-counts-or-regions"]);
568+
cmd.args([
569+
"show",
570+
"--format=text",
571+
"--show-line-counts-or-regions",
572+
"--show-branches=count",
573+
]);
569574

570575
cmd.arg("--Xdemangler");
571576
cmd.arg(self.config.rust_demangler_path.as_ref().unwrap());

0 commit comments

Comments
 (0)