From: Karen Etheridge Date: Thu, 12 Jul 2012 22:14:30 +0000 (-0700) Subject: detect when running tests via dzil X-Git-Tag: v1.004001~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d7e82ccb43d73bd4f7de8ab88aeb668fa75dda6d;p=p5sagit%2Fstrictures.git detect when running tests via dzil --- diff --git a/Changes b/Changes index 5223d84..b3bfcb0 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,4 @@ + - test-specific strictures now enabled during 'dzil test' 1.004000 - 2012-07-12 - switch to testing calling file to avoid firing on dependencies 1.003001 - 2012-04-08 diff --git a/lib/strictures.pm b/lib/strictures.pm index 0604746..1202799 100644 --- a/lib/strictures.pm +++ b/lib/strictures.pm @@ -23,7 +23,8 @@ sub VERSION { my $extras_load_warned; -our $Smells_Like_VCS = -e '.git' || -e '.svn'; +our $Smells_Like_VCS = (-e '.git' || -e '.svn' + || (-e '../../dist.ini' && (-e '../../.git' || -e '../../.svn'))); sub import { strict->import;