Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bfc515ed96
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.374 kb
use strict;
use warnings;
use File::Spec::Functions 'catfile';
use Test::More tests => 1;
# grok should die with an error message if the target is not recognized
my $grok = catfile('bin', 'grok');
my $target = 'definitely_completely_unrecognized_target';
my $result = qx/$^X $grok $target 2>&1/;
like($result, qr/^Target '$target' not recognized$/, "Sane error message");
Jump to Line
Something went wrong with that request. Please try again.