]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/20-bad-no.t
Add undef guards to $stderr in tests
[perl/modules/indirect.git] / t / 20-bad-no.t
index 5d82d9551cd4143a3fad988a3d2025548d20a27a..fbfceaf3ead8e44091d57ca407b0dc093c19546c 100644 (file)
@@ -22,7 +22,7 @@ use IPC::Cmd qw/run/;
 plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr;
 plan tests => $total + 1;
 
-$stderr = join '', @$stderr;
+$stderr = join '', @{$stderr || []};
 unless ($success) {
  diag $stderr;
  diag "Failed to execute data file (error $err_code)";