55// checks that no full file paths are exposed and that the override flag is respected.
66// See https://github.com/rust-lang/rust/pull/121297
77
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} ;
911
1012fn main ( ) {
1113 // Test that we don't have the full path to the PDB file in the binary
@@ -16,11 +18,11 @@ fn main() {
1618 . crate_type ( "bin" )
1719 . arg ( "-Cforce-frame-pointers" )
1820 . 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"# ) ;
2123 // Test that backtraces still can find debuginfo by checking that they contain symbol names and
2224 // source locations.
23- let out = run ( bin_name ( my_crate_name) ) ;
25+ let out = run ( & bin_name ( " my_crate_name" ) ) ;
2426 out. assert_stdout_contains ( "my_crate_name::fn_in_backtrace" ) ;
2527 out. assert_stdout_contains ( "main.rs:15" ) ;
2628 // Test that explicitly passed `-Clink-arg=/PDBALTPATH:...` is respected
@@ -32,6 +34,6 @@ fn main() {
3234 . link_arg ( "/PDBALTPATH:abcdefg.pdb" )
3335 . arg ( "-Cforce-frame-pointers" )
3436 . 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" ) ;
3739}
0 commit comments