From 664a59b1a9e3a13d47944387dc26b9c2e05347af Mon Sep 17 00:00:00 2001 From: bayashi Date: Thu, 1 May 2014 19:05:15 +0900 Subject: [PATCH] support Devel::NYTProf 5.06 heigher only --- Makefile.PL | 2 +- t/01_profile.t | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 35b0776..559881d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,7 +5,7 @@ all_from 'lib/Plack/Middleware/Profiler/NYTProf.pm'; requires( 'parent' => 0, 'Plack' => 0, - 'Devel::NYTProf' => 0, + 'Devel::NYTProf' => '5.06', 'Time::HiRes' => 0, 'File::Which' => 0, ); diff --git a/t/01_profile.t b/t/01_profile.t index 2311545..ce676e6 100644 --- a/t/01_profile.t +++ b/t/01_profile.t @@ -20,8 +20,6 @@ subtest 'is profiling result created' => sub { is $res->code, 200, "Response is returned successfully"; - ok -e "nytprof.out", "Exists nytprof.out"; - my $regex = qr/nytprof\.\d+\-(\d+)\.\d+\.out/; for my $file ( glob("nytprof.*.out") ) { like $file, $regex, "Exists profiling result file: $file";