@@ -289,20 +289,23 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
289289 dump_output_file( config, testfile, script_str, "debugger. script") ;
290290
291291
292- procsrv : : run( "" , config. adb_path. clone ( ) ,
292+ procsrv : : run( "" , config. adb_path,
293293 [ ~"push", exe_file. as_str( ) . unwrap( ) . to_owned( ) , config. adb_test_dir. clone( ) ] ,
294- ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
294+ ~[ ( ~"", ~"") ] , Some ( ~"") )
295+ . expect( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
295296
296297 procsrv:: run( "" , config. adb_path,
297298 [ ~"forward", ~"tcp: 5039 ", ~"tcp: 5039 "] ,
298- ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
299+ ~[ ( ~"", ~"") ] , Some ( ~"") )
300+ . expect( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
299301
300302 let adb_arg = format ! ( "export LD_LIBRARY_PATH={}; gdbserver :5039 {}/{}" ,
301303 config. adb_test_dir. clone( ) , config. adb_test_dir. clone( ) ,
302304 str :: from_utf8( exe_file. filename( ) . unwrap( ) ) ) ;
303305
304- let mut process = procsrv:: run_background( "" , config. adb_path. clone( ) ,
305- [ ~"shell", adb_arg. clone( ) ] , ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
306+ let mut process = procsrv:: run_background( "" , config. adb_path,
307+ [ ~"shell", adb_arg. clone( ) ] , ~[ ( ~"", ~"") ] , Some ( ~"") )
308+ . expect( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
306309 loop {
307310 //waiting 1 second for gdbserver start
308311 timer:: sleep( 1000 ) ;
@@ -334,10 +337,12 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
334337 let debugger_opts = ~[ ~"-quiet", ~"-batch", ~"-nx",
335338 "-command=" + debugger_script. as_str ( ) . unwrap ( ) . to_owned ( ) ] ;
336339
340+ let gdb_path = tool_path. append ( "/bin/arm-linux-androideabi-gdb" ) ;
337341 let procsrv:: Result { out, err, status } =
338342 procsrv:: run ( "" ,
339- tool_path. append ( "/bin/arm-linux-androideabi-gdb" ) ,
340- debugger_opts, ~[ ( ~"", ~"") ] , None ) ;
343+ gdb_path,
344+ debugger_opts, ~[ ( ~"", ~"") ] , None )
345+ . expect ( format ! ( "failed to exec `{}`" , gdb_path) ) ;
341346 let cmdline = {
342347 let cmdline = make_cmdline ( "" , "arm-linux-androideabi-gdb" , debugger_opts) ;
343348 logv ( config, format ! ( "executing {}" , cmdline) ) ;
@@ -800,7 +805,8 @@ fn program_output(config: &config, testfile: &Path, lib_path: &str, prog: ~str,
800805 cmdline
801806 } ;
802807 let procsrv:: Result { out, err, status } =
803- procsrv:: run ( lib_path, prog, args, env, input) ;
808+ procsrv:: run ( lib_path, prog, args, env, input)
809+ . expect ( format ! ( "failed to exec `{}`" , prog) ) ;
804810 dump_output ( config, testfile, out, err) ;
805811 return ProcRes { status : status,
806812 stdout : out,
@@ -908,7 +914,8 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
908914 // copy to target
909915 let copy_result = procsrv:: run ( "" , config. adb_path ,
910916 [ ~"push", args. prog . clone ( ) , config. adb_test_dir . clone ( ) ] ,
911- ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
917+ ~[ ( ~"", ~"") ] , Some ( ~"") )
918+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
912919
913920 if config. verbose {
914921 println ! ( "push ({}) {} {} {}" ,
@@ -932,7 +939,8 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
932939 for tv in args. args . iter ( ) {
933940 runargs. push ( tv. to_owned ( ) ) ;
934941 }
935- procsrv:: run ( "" , config. adb_path , runargs, ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
942+ procsrv:: run ( "" , config. adb_path , runargs, ~[ ( ~"", ~"") ] , Some ( ~"") )
943+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
936944
937945 // get exitcode of result
938946 runargs = ~[ ] ;
@@ -942,7 +950,8 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
942950
943951 let procsrv:: Result { out : exitcode_out, err : _, status : _ } =
944952 procsrv:: run ( "" , config. adb_path , runargs, ~[ ( ~"", ~"") ] ,
945- Some ( ~"") ) ;
953+ Some ( ~"") )
954+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
946955
947956 let mut exitcode : int = 0 ;
948957 for c in exitcode_out. chars ( ) {
@@ -960,7 +969,8 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
960969 runargs. push ( format ! ( "{}/{}.stdout" , config. adb_test_dir, prog_short) ) ;
961970
962971 let procsrv:: Result { out : stdout_out, err : _, status : _ } =
963- procsrv:: run ( "" , config. adb_path , runargs, ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
972+ procsrv:: run ( "" , config. adb_path , runargs, ~[ ( ~"", ~"") ] , Some ( ~"") )
973+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
964974
965975 // get stderr of result
966976 runargs = ~[ ] ;
@@ -969,7 +979,8 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
969979 runargs. push ( format ! ( "{}/{}.stderr" , config. adb_test_dir, prog_short) ) ;
970980
971981 let procsrv:: Result { out : stderr_out, err : _, status : _ } =
972- procsrv:: run ( "" , config. adb_path , runargs, ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
982+ procsrv:: run ( "" , config. adb_path , runargs, ~[ ( ~"", ~"") ] , Some ( ~"") )
983+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
973984
974985 dump_output ( config, testfile, stdout_out, stderr_out) ;
975986
@@ -1004,7 +1015,8 @@ fn _arm_push_aux_shared_library(config: &config, testfile: &Path) {
10041015 // FIXME (#9639): This needs to handle non-utf8 paths
10051016 let copy_result = procsrv:: run ( "" , config. adb_path ,
10061017 [ ~"push", file. as_str ( ) . unwrap ( ) . to_owned ( ) , config. adb_test_dir . clone ( ) ] ,
1007- ~[ ( ~"", ~"") ] , Some ( ~"") ) ;
1018+ ~[ ( ~"", ~"") ] , Some ( ~"") )
1019+ . expect ( format ! ( "failed to exec `{}`" , config. adb_path) ) ;
10081020
10091021 if config. verbose {
10101022 println ! ( "push ({}) {} {} {}" ,
0 commit comments