File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1359,11 +1359,12 @@ sub run {
1359
1359
waitpid ( $pid , 0 );
1360
1360
my $child_exit_status = $? >> 8;
1361
1361
1362
+
1362
1363
$self -> _warn( $error ) if length $error ;
1363
1364
1364
1365
if ( $child_exit_status ) {
1365
1366
$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 " );
1367
1368
}
1368
1369
1369
1370
return $output ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ subtest 'bad command' => sub {
64
64
ok defined $at , " Bad command dies" ;
65
65
66
66
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' ;
68
68
}
69
69
else {
70
70
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