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=646332a43b6844354aae5afe88437c4bd7c1335c;hp=ca4cbcf2c6013d890f6fad11173de15c1cdcfb89;hb=8a1b06bea91f32966b5f067d6502209e0338827f;hpb=1c9c3b77c6192f4cdb713b60ee9472b112a43d5a diff --git a/t/optional_memleak.t b/t/optional_memleak.t index ca4cbcf..646332a 100644 --- a/t/optional_memleak.t +++ b/t/optional_memleak.t @@ -17,12 +17,17 @@ 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;