Skip to content

Commit

Permalink
Double ensure Capture::Tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Feb 10, 2014
1 parent 09d7ce3 commit 35015f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dist.ini
Expand Up @@ -23,6 +23,8 @@ Pegex = 0.24
; perl -Ilib -MTestML::Setup -e 'TestML::Setup->new->setup(shift)' t/testml-lite.yaml

[PodSyntaxTests]
[Prereqs / TestRequires]
Capture::Tiny = 0

[PruneFiles]
filename = ReadMe.md
Expand Down
10 changes: 8 additions & 2 deletions t/print.t
@@ -1,6 +1,12 @@
use strict;
use Test::More tests => 1;
use Capture::Tiny ':all';
use Test::More;

BEGIN {
if (not eval "use Capture::Tiny ':all'; 1") {
plan skip_all => "requires Capture::Tiny";
}
plan tests => 1;
}

my ($out, $err) = capture {
system $^X, '-Ilib', 't/script/hello.pl';
Expand Down

0 comments on commit 35015f3

Please sign in to comment.