X-Git-Url: http://git.shiar.nl/barcat.git/blobdiff_plain/0bfa64faefa577d082b8e62aa0b53b11f307aec5..2bf96f1ac810eeec505dd404d221fcc1041c8caf:/t/examples.t?ds=sidebyside diff --git a/t/examples.t b/t/examples.t index 52e7a5a..1af87e5 100755 --- a/t/examples.t +++ b/t/examples.t @@ -52,8 +52,9 @@ while (readline $input) { # run and report unexpected results ok(eval { - run(\@cmd, \undef, \my $output); - $? == 0 or die "error status ", $? >> 8, "\n"; + run(\@cmd, \undef, \my $output, \my $error); + die("error message:\n $error\n") if $error; + $? == 0 or die "exit status ", $? >> 8, "\n"; length $output or die "empty output\n"; return 1; }, $name) or diag("Failed command\n@cmd\nfrom $filename line $.: $@");