@@ -399,7 +399,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
399
399
procsrv:: run ( "" ,
400
400
config. adb_path . as_slice ( ) ,
401
401
None ,
402
- [
402
+ & [
403
403
"push" . to_string ( ) ,
404
404
exe_file. as_str ( ) . unwrap ( ) . to_string ( ) ,
405
405
config. adb_test_dir . clone ( )
@@ -411,7 +411,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
411
411
procsrv:: run ( "" ,
412
412
config. adb_path . as_slice ( ) ,
413
413
None ,
414
- [
414
+ & [
415
415
"forward" . to_string ( ) ,
416
416
"tcp:5039" . to_string ( ) ,
417
417
"tcp:5039" . to_string ( )
@@ -432,7 +432,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
432
432
config. adb_path
433
433
. as_slice ( ) ,
434
434
None ,
435
- [
435
+ & [
436
436
"shell" . to_string ( ) ,
437
437
adb_arg. clone ( )
438
438
] ,
@@ -746,7 +746,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
746
746
cmd. arg ( lldb_script_path)
747
747
. arg ( test_executable)
748
748
. arg ( debugger_script)
749
- . env_set_all ( [ ( "PYTHONPATH" , config. lldb_python_dir . clone ( ) . unwrap ( ) . as_slice ( ) ) ] ) ;
749
+ . env_set_all ( & [ ( "PYTHONPATH" , config. lldb_python_dir . clone ( ) . unwrap ( ) . as_slice ( ) ) ] ) ;
750
750
751
751
let ( status, out, err) = match cmd. spawn ( ) {
752
752
Ok ( process) => {
@@ -1142,11 +1142,11 @@ struct ProcRes {
1142
1142
1143
1143
fn compile_test ( config : & Config , props : & TestProps ,
1144
1144
testfile : & Path ) -> ProcRes {
1145
- compile_test_ ( config, props, testfile, [ ] )
1145
+ compile_test_ ( config, props, testfile, & [ ] )
1146
1146
}
1147
1147
1148
1148
fn jit_test ( config : & Config , props : & TestProps , testfile : & Path ) -> ProcRes {
1149
- compile_test_ ( config, props, testfile, [ "--jit" . to_string ( ) ] )
1149
+ compile_test_ ( config, props, testfile, & [ "--jit" . to_string ( ) ] )
1150
1150
}
1151
1151
1152
1152
fn compile_test_ ( config : & Config , props : & TestProps ,
@@ -1507,7 +1507,7 @@ fn _arm_exec_compiled_test(config: &Config,
1507
1507
let copy_result = procsrv:: run ( "" ,
1508
1508
config. adb_path . as_slice ( ) ,
1509
1509
None ,
1510
- [
1510
+ & [
1511
1511
"push" . to_string ( ) ,
1512
1512
args. prog . clone ( ) ,
1513
1513
config. adb_test_dir . clone ( )
@@ -1624,7 +1624,7 @@ fn _arm_push_aux_shared_library(config: &Config, testfile: &Path) {
1624
1624
let copy_result = procsrv:: run ( "" ,
1625
1625
config. adb_path . as_slice ( ) ,
1626
1626
None ,
1627
- [
1627
+ & [
1628
1628
"push" . to_string ( ) ,
1629
1629
file. as_str ( )
1630
1630
. unwrap ( )
0 commit comments