@@ -61,7 +61,7 @@ pub fn run_metrics(config: Config, testfile: String, mm: &mut MetricMap) {
6161 print ! ( "\n \n " ) ;
6262 }
6363 let testfile = Path :: new ( testfile) ;
64- debug ! ( "running {}" , testfile. display( ) ) ;
64+ debug ! ( "running {:? }" , testfile. display( ) ) ;
6565 let props = header:: load_props ( & testfile) ;
6666 debug ! ( "loaded props" ) ;
6767 match config. mode {
@@ -141,7 +141,7 @@ fn check_correct_failure_status(proc_res: &ProcRes) {
141141 static RUST_ERR : int = 101 ;
142142 if !proc_res. status . matches_exit_status ( RUST_ERR ) {
143143 fatal_proc_rec (
144- format ! ( "failure produced the wrong error: {}" ,
144+ format ! ( "failure produced the wrong error: {:? }" ,
145145 proc_res. status) . as_slice ( ) ,
146146 proc_res) ;
147147 }
@@ -410,7 +410,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
410410 ] ,
411411 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
412412 Some ( "" . to_string ( ) ) )
413- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
413+ . expect ( format ! ( "failed to exec `{:? }`" , config. adb_path) . as_slice ( ) ) ;
414414
415415 procsrv:: run ( "" ,
416416 config. adb_path . as_slice ( ) ,
@@ -422,7 +422,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
422422 ] ,
423423 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
424424 Some ( "" . to_string ( ) ) )
425- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
425+ . expect ( format ! ( "failed to exec `{:? }`" , config. adb_path) . as_slice ( ) ) ;
426426
427427 let adb_arg = format ! ( "export LD_LIBRARY_PATH={}; \
428428 gdbserver :5039 {}/{}",
@@ -443,7 +443,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
443443 vec ! ( ( "" . to_string( ) ,
444444 "" . to_string( ) ) ) ,
445445 Some ( "" . to_string ( ) ) )
446- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
446+ . expect ( format ! ( "failed to exec `{:? }`" , config. adb_path) . as_slice ( ) ) ;
447447 loop {
448448 //waiting 1 second for gdbserver start
449449 timer:: sleep ( Duration :: milliseconds ( 1000 ) ) ;
@@ -481,7 +481,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
481481 debugger_opts. as_slice ( ) ,
482482 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
483483 None )
484- . expect ( format ! ( "failed to exec `{}`" , gdb_path) . as_slice ( ) ) ;
484+ . expect ( format ! ( "failed to exec `{:? }`" , gdb_path) . as_slice ( ) ) ;
485485 let cmdline = {
486486 let cmdline = make_cmdline ( "" ,
487487 "arm-linux-androideabi-gdb" ,
@@ -548,7 +548,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
548548
549549 // Add line breakpoints
550550 for line in breakpoint_lines. iter ( ) {
551- script_str. push_str ( format ! ( "break '{}':{}\n " ,
551+ script_str. push_str ( format ! ( "break '{:? }':{}\n " ,
552552 testfile. filename_display( ) ,
553553 * line) [ ] ) ;
554554 }
@@ -889,7 +889,7 @@ fn check_error_patterns(props: &TestProps,
889889 output_to_check : & str ,
890890 proc_res : & ProcRes ) {
891891 if props. error_patterns . is_empty ( ) {
892- fatal ( format ! ( "no error pattern specified in {}" ,
892+ fatal ( format ! ( "no error pattern specified in {:? }" ,
893893 testfile. display( ) ) . as_slice ( ) ) ;
894894 }
895895 let mut next_err_idx = 0 u;
@@ -955,7 +955,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
955955 }
956956
957957 let prefixes = expected_errors. iter ( ) . map ( |ee| {
958- format ! ( "{}:{}:" , testfile. display( ) , ee. line)
958+ format ! ( "{:? }:{}:" , testfile. display( ) , ee. line)
959959 } ) . collect :: < Vec < String > > ( ) ;
960960
961961 #[ cfg( windows) ]
@@ -1191,7 +1191,7 @@ fn compose_and_run_compiler(
11911191 None ) ;
11921192 if !auxres. status . success ( ) {
11931193 fatal_proc_rec (
1194- format ! ( "auxiliary build of {} failed to compile: " ,
1194+ format ! ( "auxiliary build of {:? } failed to compile: " ,
11951195 abs_ab. display( ) ) . as_slice ( ) ,
11961196 & auxres) ;
11971197 }
@@ -1601,7 +1601,7 @@ fn _arm_push_aux_shared_library(config: &Config, testfile: &Path) {
16011601 . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
16021602
16031603 if config. verbose {
1604- println ! ( "push ({}) {} {} {}" ,
1604+ println ! ( "push ({}) {:? } {} {}" ,
16051605 config. target, file. display( ) ,
16061606 copy_result. out, copy_result. err) ;
16071607 }
0 commit comments