We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeb4fe0 commit 86637f4Copy full SHA for 86637f4
tests/run-make/profile/rmake.rs
@@ -11,11 +11,17 @@ use run_make_support::{run, rustc};
11
use std::path::Path;
12
13
fn main() {
14
- rustc().arg("-g").arg("-Zprofile").input("test.rs").run();
+ rustc().arg("-g").arg("-Zprofile").input("test.rs").arg("-Cinstrument-coverage").run();
15
run("test");
16
assert!(Path::new("test.gcno").exists(), "no .gcno file");
17
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();
+ rustc()
19
+ .arg("-g")
20
+ .arg("-Zprofile")
21
+ .arg("-Zprofile-emit=abc/abc.gcda")
22
+ .arg("-Cinstrument-coverage")
23
+ .input("test.rs")
24
+ .run();
25
26
assert!(Path::new("abc/abc.gcda").exists(), "gcda file not emitted to defined path");
27
}
0 commit comments