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};
1111use std:: path:: Path ;
1212
1313fn 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}
You can’t perform that action at this time.
0 commit comments