@@ -164,8 +164,8 @@ subtest 'process execute()' => sub {
164164 diag " ##################### $p " ;
165165 my @i = @Mojo::IOLoop::ReadWriteProcess::ISA ;
166166 diag " ### @i " ;
167- $p -> write (" FOOBAR " );
168- is $p -> getline, " you entered FOOBAR \n " ,
167+ $p -> write (" FOOBAR1 " );
168+ is $p -> getline, " you entered FOOBAR1 \n " ,
169169 ' process received input and printed it back' ;
170170 $p -> wait_stop();
171171 is $p -> is_running, 0, ' process is not running anymore' ;
@@ -179,13 +179,15 @@ subtest 'process execute()' => sub {
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' ;
182- $p -> write (" FOOBAR " );
183- is $p -> getline, " you entered FOOBAR \n " ,
182+ $p -> write (" FOOBAR2 " );
183+ is $p -> getline, " you entered FOOBAR2 \n " ,
184184 ' process received input and printed it back' ;
185185 $p -> wait_stop();
186186 is $p -> is_running, 0, ' process is not running anymore' ;
187187 is $p -> getline, " FOO BAZ\n " , ' process received extra arguments' ;
188188 is $p -> exit_status, 100, ' able to retrieve function return' ;
189+ return ;
190+
189191
190192 my $patience = $timeout / $interval ;
191193 $p = Mojo::IOLoop::ReadWriteProcess-> new(
0 commit comments