@@ -138,7 +138,7 @@ subtest 'process execute()' => sub {
138138 my $p = Mojo::IOLoop::ReadWriteProcess-> new(
139139 sleeptime_during_kill => $interval ,
140140 execute => ' bash' ,
141- )-> args($test_script )-> start();
141+ )-> args([ $test_script ] )-> start();
142142 is $p -> getline, " TEST normal print\n " , ' Get right output from stdout' ;
143143 is $p -> err_getline, " TEST error print\n " , ' Get right output from stderr' ;
144144 is $p -> is_running, 1, ' process is still waiting for our input' ;
@@ -153,8 +153,8 @@ subtest 'process execute()' => sub {
153153 $p = Mojo::IOLoop::ReadWriteProcess-> new(
154154 kill_sleeptime => $interval ,
155155 sleeptime_during_kill => $interval ,
156- execute => $test_script ,
157- args => [
156+ execute => ' bash ' ,
157+ args => [ $test_script ,
158158 qw( FOO
159159 BAZ)
160160 ])-> start();
@@ -174,8 +174,8 @@ subtest 'process execute()' => sub {
174174
175175 $p = Mojo::IOLoop::ReadWriteProcess-> new(
176176 sleeptime_during_kill => $interval ,
177- execute => $test_script
178- )-> args([qw( FOO BAZ) ])-> start();
177+ execute => ' bash ' ,
178+ )-> args([$test_script , qw( FOO BAZ) ])-> start();
179179 is $p -> stdout, " TEST normal print\n " , ' Get right output from stdout' ;
180180 is $p -> err_getline, " TEST error print\n " , ' Get right output from stderr' ;
181181 is $p -> is_running, 1, ' process is still waiting for our input' ;
@@ -196,8 +196,8 @@ subtest 'process execute()' => sub {
196196 kill_sleeptime => $interval ,
197197 sleeptime_during_kill => $interval ,
198198 separate_err => 0,
199- execute => $test_script
200- );
199+ execute => ' bash ' ,
200+ )-> args([ $test_script ]) ;
201201 $p -> start();
202202 sleep $interval until $p -> is_running || --$patience <= 0;
203203 is $p -> is_running, 1, ' process is still running' ;
0 commit comments