X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_memleak.t;h=ba193a36fa9ab7ae89c7aff40640defcae86acc0;hp=f420ef15d90c62afc4800878d9511e78980845b5;hb=4853fb50e3c7138bbe513fed2b22574a2d988ed1;hpb=845bfcd2f888e02d8f952088eaeb169fbbae9841 diff --git a/t/optional_memleak.t b/t/optional_memleak.t index f420ef1..ba193a3 100644 --- a/t/optional_memleak.t +++ b/t/optional_memleak.t @@ -3,15 +3,16 @@ use strict; use warnings; +use Test::More; +BEGIN { + plan skip_all => 'set TEST_MEMLEAK to enable this test' + unless $ENV{TEST_MEMLEAK}; +} + use FindBin; use lib "$FindBin::Bin/lib"; - -use Test::More; use Catalyst::Test 'TestApp'; -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 $@;