]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/11-good-use.t
Add undef guards to $stderr in tests
[perl/modules/indirect.git] / t / 11-good-use.t
index 2e8035ed2a1fc931b1127815d5658b78ceea965d..6f0025426fe54b10aa5935397eff0eaba92d5954 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)";