File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,17 @@ use run_make_support::{run, rustc};
11
11
use std:: path:: Path ;
12
12
13
13
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 ( ) ;
15
15
run ( "test" ) ;
16
16
assert ! ( Path :: new( "test.gcno" ) . exists( ) , "no .gcno file" ) ;
17
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 ( ) ;
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 ( ) ;
19
25
run ( "test" ) ;
20
26
assert ! ( Path :: new( "abc/abc.gcda" ) . exists( ) , "gcda file not emitted to defined path" ) ;
21
27
}
You can’t perform that action at this time.
0 commit comments