File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1359,11 +1359,12 @@ sub run {
13591359 waitpid ( $pid , 0 );
13601360 my $child_exit_status = $? >> 8;
13611361
1362+
13621363 $self -> _warn( $error ) if length $error ;
13631364
13641365 if ( $child_exit_status ) {
13651366 $self -> _run_error_set;
1366- $self -> _warn( " Command [$command ] didn't close cleanly: $? " );
1367+ $self -> _warn( " Command [$command ] didn't close cleanly: $child_exit_status " );
13671368 }
13681369
13691370 return $output ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ subtest 'bad command' => sub {
6464 ok defined $at , " Bad command dies" ;
6565
6666 if ( $^O eq ' MSWin32' ) {
67- like $warnings , qr /'foo' is not recognized / , ' Saw Windows error' ;
67+ like $warnings , qr /didn't close cleanly / , ' Saw Windows error' ;
6868 }
6969 else {
7070 like $at , qr / exec of \Q $command \E failed/ , " Error message with bad command" ;
You can’t perform that action at this time.
0 commit comments