@@ -61,7 +61,7 @@ pub fn run_metrics(config: Config, testfile: String, mm: &mut MetricMap) {
61
61
print ! ( "\n \n " ) ;
62
62
}
63
63
let testfile = Path :: new ( testfile) ;
64
- debug ! ( "running {}" , testfile. display( ) ) ;
64
+ debug ! ( "running {:? }" , testfile. display( ) ) ;
65
65
let props = header:: load_props ( & testfile) ;
66
66
debug ! ( "loaded props" ) ;
67
67
match config. mode {
@@ -141,7 +141,7 @@ fn check_correct_failure_status(proc_res: &ProcRes) {
141
141
static RUST_ERR : int = 101 ;
142
142
if !proc_res. status . matches_exit_status ( RUST_ERR ) {
143
143
fatal_proc_rec (
144
- format ! ( "failure produced the wrong error: {}" ,
144
+ format ! ( "failure produced the wrong error: {:? }" ,
145
145
proc_res. status) . as_slice ( ) ,
146
146
proc_res) ;
147
147
}
@@ -410,7 +410,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
410
410
] ,
411
411
vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
412
412
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 ( ) ) ;
414
414
415
415
procsrv:: run ( "" ,
416
416
config. adb_path . as_slice ( ) ,
@@ -422,7 +422,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
422
422
] ,
423
423
vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
424
424
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 ( ) ) ;
426
426
427
427
let adb_arg = format ! ( "export LD_LIBRARY_PATH={}; \
428
428
gdbserver :5039 {}/{}",
@@ -443,7 +443,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
443
443
vec ! ( ( "" . to_string( ) ,
444
444
"" . to_string( ) ) ) ,
445
445
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 ( ) ) ;
447
447
loop {
448
448
//waiting 1 second for gdbserver start
449
449
timer:: sleep ( Duration :: milliseconds ( 1000 ) ) ;
@@ -481,7 +481,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
481
481
debugger_opts. as_slice ( ) ,
482
482
vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
483
483
None )
484
- . expect ( format ! ( "failed to exec `{}`" , gdb_path) . as_slice ( ) ) ;
484
+ . expect ( format ! ( "failed to exec `{:? }`" , gdb_path) . as_slice ( ) ) ;
485
485
let cmdline = {
486
486
let cmdline = make_cmdline ( "" ,
487
487
"arm-linux-androideabi-gdb" ,
@@ -548,7 +548,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
548
548
549
549
// Add line breakpoints
550
550
for line in breakpoint_lines. iter ( ) {
551
- script_str. push_str ( format ! ( "break '{}':{}\n " ,
551
+ script_str. push_str ( format ! ( "break '{:? }':{}\n " ,
552
552
testfile. filename_display( ) ,
553
553
* line) [ ] ) ;
554
554
}
@@ -889,7 +889,7 @@ fn check_error_patterns(props: &TestProps,
889
889
output_to_check : & str ,
890
890
proc_res : & ProcRes ) {
891
891
if props. error_patterns . is_empty ( ) {
892
- fatal ( format ! ( "no error pattern specified in {}" ,
892
+ fatal ( format ! ( "no error pattern specified in {:? }" ,
893
893
testfile. display( ) ) . as_slice ( ) ) ;
894
894
}
895
895
let mut next_err_idx = 0 u;
@@ -955,7 +955,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
955
955
}
956
956
957
957
let prefixes = expected_errors. iter ( ) . map ( |ee| {
958
- format ! ( "{}:{}:" , testfile. display( ) , ee. line)
958
+ format ! ( "{:? }:{}:" , testfile. display( ) , ee. line)
959
959
} ) . collect :: < Vec < String > > ( ) ;
960
960
961
961
#[ cfg( windows) ]
@@ -1191,7 +1191,7 @@ fn compose_and_run_compiler(
1191
1191
None ) ;
1192
1192
if !auxres. status . success ( ) {
1193
1193
fatal_proc_rec (
1194
- format ! ( "auxiliary build of {} failed to compile: " ,
1194
+ format ! ( "auxiliary build of {:? } failed to compile: " ,
1195
1195
abs_ab. display( ) ) . as_slice ( ) ,
1196
1196
& auxres) ;
1197
1197
}
@@ -1601,7 +1601,7 @@ fn _arm_push_aux_shared_library(config: &Config, testfile: &Path) {
1601
1601
. expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
1602
1602
1603
1603
if config. verbose {
1604
- println ! ( "push ({}) {} {} {}" ,
1604
+ println ! ( "push ({}) {:? } {} {}" ,
1605
1605
config. target, file. display( ) ,
1606
1606
copy_result. out, copy_result. err) ;
1607
1607
}
0 commit comments