@@ -361,7 +361,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
361361 ] ,
362362 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
363363 Some ( "" . to_string ( ) ) )
364- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
364+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
365365
366366 procsrv:: run ( "" ,
367367 config. adb_path . as_slice ( ) ,
@@ -372,7 +372,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
372372 ] ,
373373 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
374374 Some ( "" . to_string ( ) ) )
375- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
375+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
376376
377377 let adb_arg = format ! ( "export LD_LIBRARY_PATH={}; \
378378 gdbserver :5039 {}/{}",
@@ -392,7 +392,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
392392 vec ! ( ( "" . to_string( ) ,
393393 "" . to_string( ) ) ) ,
394394 Some ( "" . to_string ( ) ) )
395- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
395+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
396396 loop {
397397 //waiting 1 second for gdbserver start
398398 timer:: sleep ( 1000 ) ;
@@ -428,7 +428,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
428428 debugger_opts. as_slice ( ) ,
429429 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
430430 None )
431- . expect ( format ! ( "failed to exec `{}`" , gdb_path) ) ;
431+ . expect ( format ! ( "failed to exec `{}`" , gdb_path) . as_slice ( ) ) ;
432432 let cmdline = {
433433 let cmdline = make_cmdline ( "" ,
434434 "arm-linux-androideabi-gdb" ,
@@ -1207,7 +1207,7 @@ fn program_output(config: &Config, testfile: &Path, lib_path: &str, prog: String
12071207 prog. as_slice ( ) ,
12081208 args. as_slice ( ) ,
12091209 env,
1210- input) . expect ( format ! ( "failed to exec `{}`" , prog) ) ;
1210+ input) . expect ( format ! ( "failed to exec `{}`" , prog) . as_slice ( ) ) ;
12111211 dump_output ( config, testfile, out. as_slice ( ) , err. as_slice ( ) ) ;
12121212 return ProcRes {
12131213 status : status,
@@ -1333,7 +1333,7 @@ fn _arm_exec_compiled_test(config: &Config,
13331333 ] ,
13341334 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
13351335 Some ( "" . to_string ( ) ) )
1336- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
1336+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
13371337
13381338 if config. verbose {
13391339 println ! ( "push ({}) {} {} {}" ,
@@ -1363,7 +1363,7 @@ fn _arm_exec_compiled_test(config: &Config,
13631363 config. adb_path . as_slice ( ) ,
13641364 runargs. as_slice ( ) ,
13651365 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) , Some ( "" . to_string ( ) ) )
1366- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
1366+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
13671367
13681368 // get exitcode of result
13691369 runargs = Vec :: new ( ) ;
@@ -1377,7 +1377,7 @@ fn _arm_exec_compiled_test(config: &Config,
13771377 runargs. as_slice ( ) ,
13781378 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
13791379 Some ( "" . to_string ( ) ) )
1380- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
1380+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
13811381
13821382 let mut exitcode: int = 0 ;
13831383 for c in exitcode_out. as_slice ( ) . chars ( ) {
@@ -1400,7 +1400,7 @@ fn _arm_exec_compiled_test(config: &Config,
14001400 runargs. as_slice ( ) ,
14011401 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
14021402 Some ( "" . to_string ( ) ) )
1403- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
1403+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
14041404
14051405 // get stderr of result
14061406 runargs = Vec :: new ( ) ;
@@ -1414,7 +1414,7 @@ fn _arm_exec_compiled_test(config: &Config,
14141414 runargs. as_slice ( ) ,
14151415 vec ! ( ( "" . to_string( ) , "" . to_string( ) ) ) ,
14161416 Some ( "" . to_string ( ) ) )
1417- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
1417+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
14181418
14191419 dump_output ( config,
14201420 testfile,
@@ -1448,7 +1448,7 @@ fn _arm_push_aux_shared_library(config: &Config, testfile: &Path) {
14481448 vec ! ( ( "" . to_string( ) ,
14491449 "" . to_string( ) ) ) ,
14501450 Some ( "" . to_string ( ) ) )
1451- . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
1451+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) . as_slice ( ) ) ;
14521452
14531453 if config. verbose {
14541454 println ! ( "push ({}) {} {} {}" ,
0 commit comments