Skip to content

Commit

Permalink
fix using undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jun 1, 2023
1 parent 1bc5a58 commit 3808dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/TestUtils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ sub test_command {
# exit code?
$test->{'exit'} = 0 unless exists $test->{'exit'};
if(defined $test->{'exit'} and $test->{'exit'} != -1) {
ok($rc == $test->{'exit'}, "exit code: ".$rc." == ".$test->{'exit'}) or do { diag("command failed with rc: ".$rc." - ".$stdout."\n"._caller_info()); $return = 0 };
ok($rc == $test->{'exit'}, "exit code: ".$rc." == ".$test->{'exit'}) or do { diag("command failed with rc: ".$rc." - ".($stdout//'')."\n"._caller_info()); $return = 0 };
}

# matches on stdout?
Expand Down

0 comments on commit 3808dc8

Please sign in to comment.