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=59e388c7d53c64e2bba863e915d375c84fe503be;hp=ba193a36fa9ab7ae89c7aff40640defcae86acc0;hb=eefc03e12890c06c9a76d78b4d68e3b2ad781328;hpb=ae29b412955743885e80350085167b54b69672da diff --git a/t/optional_memleak.t b/t/optional_memleak.t index ba193a3..59e388c 100644 --- a/t/optional_memleak.t +++ b/t/optional_memleak.t @@ -1,5 +1,3 @@ -#!perl - use strict; use warnings; @@ -16,15 +14,17 @@ use Catalyst::Test 'TestApp'; 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 $@; +use JSON::MaybeXS qw(decode_json); our $t = Proc::ProcessTable->new( cache_ttys => 1 ); our ( $initial, $final ) = ( 0, 0 ); -our $tests = YAML::LoadFile("$FindBin::Bin/optional_stress.yml"); +my $test_data = do { + open my $fh, '<:raw', "$FindBin::Bin/optional_stress.json" or die "$!"; + local $/; + <$fh>; +}; + +our $tests = decode_json($test_data); my $total_tests = 0;