File tree 3 files changed +21
-14
lines changed
3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ run-make/pretty-print-to-file/Makefile
138
138
run-make/pretty-print-with-dep-file/Makefile
139
139
run-make/print-calling-conventions/Makefile
140
140
run-make/print-target-list/Makefile
141
- run-make/profile/Makefile
142
141
run-make/prune-link-args/Makefile
143
142
run-make/raw-dylib-alt-calling-convention/Makefile
144
143
run-make/raw-dylib-c/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // This test revolves around the rustc flag -Z profile, which should
2
+ // generate a .gcno file (initial profiling information) as well
3
+ // as a .gcda file (branch counters). The path where these are emitted
4
+ // should also be configurable with -Z profile-emit. This test checks
5
+ // that the files are produced, and then that the latter flag is respected.
6
+ // See https://github.com/rust-lang/rust/pull/42433
7
+
8
+ //@ ignore-cross-compile
9
+
10
+ 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 ( ) ;
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 ( ) ;
19
+ run ( "test" ) ;
20
+ assert ! ( Path :: new( "abc/abc.gcda" ) . exists( ) , "gcda file not emitted to defined path" ) ;
21
+ }
You can’t perform that action at this time.
0 commit comments