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=ca4cbcf2c6013d890f6fad11173de15c1cdcfb89;hp=f420ef15d90c62afc4800878d9511e78980845b5;hb=c463b49c849c28a6fa46e9eb1c07a31b51696f1d;hpb=0d9dfa69efa80a1254a764d27d5fd1f6aca86442 diff --git a/t/optional_memleak.t b/t/optional_memleak.t index f420ef1..ca4cbcf 100644 --- a/t/optional_memleak.t +++ b/t/optional_memleak.t @@ -1,17 +1,16 @@ -#!perl - 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 $@;