X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_memleak.t;h=b45445169aef099d91a5fe87b8fee258fadf8d22;hb=069355dabccdbb5fd15a4c7cabd7ef3b96963182;hp=391f031ac10e49bdd0b53a4a89ed4399a8feb154;hpb=fe7960931099de2d6e5e3b05a575d94ed2b57761;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_memleak.t b/t/optional_memleak.t index 391f031..b454451 100644 --- a/t/optional_memleak.t +++ b/t/optional_memleak.t @@ -8,16 +8,19 @@ use lib "$FindBin::Bin/lib"; use Test::More; use Catalyst::Test 'TestApp'; -use YAML; -eval "use Proc::ProcessTable"; plan skip_all => 'set TEST_MEMLEAK to enable this test' unless $ENV{TEST_MEMLEAK}; + +eval "use Proc::ProcessTable"; plan skip_all => 'Proc::ProcessTable required for this test' if $@; eval "use HTTP::Body 0.03"; plan skip_all => 'HTTP::Body >= 0.03 required for this test' if $@; +eval "use YAML"; +plan skip_all => 'YAML required for this test' if $@; + our $t = Proc::ProcessTable->new( cache_ttys => 1 ); our ( $initial, $final ) = ( 0, 0 ); our $tests = YAML::LoadFile("$FindBin::Bin/optional_stress.yml");