Skip to content

Commit

Permalink
Add skip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hkoba committed Feb 12, 2025
1 parent 8135d96 commit 8fe3515
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/lint.t
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,17 @@ my $inputdir = $bindir . "in";
is_deeply [$out, $?], ["Module Foo is OK\n", 0], $fn;
}

{
SKIP: {
skip "requires v5.38", 1 unless $] >= 5.038;
my $test = "$inputdir/8";
my $fn = "$test.d/lib/Foo.pm";
my $want = "$fn syntax OK\n";
my $out = qx($^X $script $fn 2>&1);
is_deeply [$out, $?], ["Module Foo is OK\n", 0], $fn;
}

{
SKIP: {
skip "requires v5.38", 1 unless $] >= 5.038;
my $test = "$inputdir/8";
my $fn = "$test.d/lib/Foo/Bar.pm";
my $want = "$fn syntax OK\n";
Expand Down

0 comments on commit 8fe3515

Please sign in to comment.