5
5
// checks that no full file paths are exposed and that the override flag is respected.
6
6
// See https://github.com/rust-lang/rust/pull/121297
7
7
8
- //@ only-windows
8
+ //@ only-x86_64-pc-windows-msvc
9
+
10
+ use run_make_support:: { bin_name, invalid_utf8_contains, invalid_utf8_not_contains, run, rustc} ;
9
11
10
12
fn main ( ) {
11
13
// Test that we don't have the full path to the PDB file in the binary
@@ -16,11 +18,11 @@ fn main() {
16
18
. crate_type ( "bin" )
17
19
. arg ( "-Cforce-frame-pointers" )
18
20
. run ( ) ;
19
- invalid_utf8_contains ( bin_name ( "my_crate_name" ) , "my_crate_name.pdb" ) ;
20
- invalid_utf8_not_contains ( bin_name ( "my_crate_name" ) , r#"\my_crate_name.pdb"# ) ;
21
+ invalid_utf8_contains ( & bin_name ( "my_crate_name" ) , "my_crate_name.pdb" ) ;
22
+ invalid_utf8_not_contains ( & bin_name ( "my_crate_name" ) , r#"\my_crate_name.pdb"# ) ;
21
23
// Test that backtraces still can find debuginfo by checking that they contain symbol names and
22
24
// source locations.
23
- let out = run ( bin_name ( my_crate_name) ) ;
25
+ let out = run ( & bin_name ( " my_crate_name" ) ) ;
24
26
out. assert_stdout_contains ( "my_crate_name::fn_in_backtrace" ) ;
25
27
out. assert_stdout_contains ( "main.rs:15" ) ;
26
28
// Test that explicitly passed `-Clink-arg=/PDBALTPATH:...` is respected
@@ -32,6 +34,6 @@ fn main() {
32
34
. link_arg ( "/PDBALTPATH:abcdefg.pdb" )
33
35
. arg ( "-Cforce-frame-pointers" )
34
36
. run ( ) ;
35
- invalid_utf8_contains ( bin_name ( "my_crate_name" ) , "abcdefg.pdb" ) ;
36
- invalid_utf8_not_contains ( bin_name ( "my_crate_name" ) , "my_crate_name.pdb" ) ;
37
+ invalid_utf8_contains ( & bin_name ( "my_crate_name" ) , "abcdefg.pdb" ) ;
38
+ invalid_utf8_not_contains ( & bin_name ( "my_crate_name" ) , "my_crate_name.pdb" ) ;
37
39
}
0 commit comments