X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F53lean_startup.t;h=b6c8be9d4d9eae0f92448a0f94122adaf6cb00a8;hb=cf9ba393c6309a66fe31b2decb7574fdf068a759;hp=c5094a583a924f13712585ee08a0328b24d504a1;hpb=ba7892a8c4d3db99f2a459b536a2a5db3a1ffa67;p=dbsrgits%2FDBIx-Class.git diff --git a/t/53lean_startup.t b/t/53lean_startup.t index c5094a5..b6c8be9 100644 --- a/t/53lean_startup.t +++ b/t/53lean_startup.t @@ -6,6 +6,9 @@ BEGIN { # these envvars *will* bring in more stuff than the baseline delete @ENV{qw(DBICTEST_SQLT_DEPLOY DBIC_TRACE)}; + # make sure extras do not load even when this is set + $ENV{PERL_STRICTURES_EXTRA} = 1; + unshift @INC, 't/lib'; require DBICTest::Util::OverrideRequire; @@ -99,11 +102,12 @@ BEGIN { namespace::clean Try::Tiny Sub::Name + strictures + Sub::Defer Sub::Quote Scalar::Util List::Util - Data::Compare Class::Accessor::Grouped Class::C3::Componentised @@ -121,6 +125,9 @@ BEGIN { { register_lazy_loadable_requires(qw( Moo + Moo::Object + Method::Generate::Accessor + Method::Generate::Constructor Context::Preserve )); @@ -166,6 +173,12 @@ BEGIN { assert_no_missing_expected_requires(); } +# make sure we never loaded any of the strictures XS bullshit +{ + ok( ! exists $INC{ Module::Runtime::module_notional_filename($_) }, "$_ load never attempted" ) + for qw(indirect multidimensional bareword::filehandles); +} + done_testing; sub register_lazy_loadable_requires {