Skip to content

Commit 86637f4

Browse files
committed
try adding -C instrument-coverage to profile run-make test
1 parent eeb4fe0 commit 86637f4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/run-make/profile/rmake.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ use run_make_support::{run, rustc};
1111
use std::path::Path;
1212

1313
fn main() {
14-
rustc().arg("-g").arg("-Zprofile").input("test.rs").run();
14+
rustc().arg("-g").arg("-Zprofile").input("test.rs").arg("-Cinstrument-coverage").run();
1515
run("test");
1616
assert!(Path::new("test.gcno").exists(), "no .gcno file");
1717
assert!(Path::new("test.gcda").exists(), "no .gcda file");
18-
rustc().arg("-g").arg("-Zprofile").arg("-Zprofile-emit=abc/abc.gcda").input("test.rs").run();
18+
rustc()
19+
.arg("-g")
20+
.arg("-Zprofile")
21+
.arg("-Zprofile-emit=abc/abc.gcda")
22+
.arg("-Cinstrument-coverage")
23+
.input("test.rs")
24+
.run();
1925
run("test");
2026
assert!(Path::new("abc/abc.gcda").exists(), "gcda file not emitted to defined path");
2127
}

0 commit comments

Comments
 (0)