X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F53lean_startup.t;h=2943507c30bed9ae39be92299522063ec35a23d6;hb=bb96193692f7c0f53de7fe15e157492b0af51988;hp=de46c8c18075abf801971e1e824b837aa227e4cd;hpb=fb88ca2c952ef2e17f6e8a414079f12f71761ff7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/53lean_startup.t b/t/53lean_startup.t index de46c8c..2943507 100644 --- a/t/53lean_startup.t +++ b/t/53lean_startup.t @@ -50,7 +50,7 @@ BEGIN { CORE::require('Test/More.pm'); Test::More::fail ("Unexpected require of '$req' by $caller[0] ($caller[1] line $caller[2])"); - if ($ENV{TEST_VERBOSE}) { + if ( $ENV{TEST_VERBOSE} or ! DBICTest::RunMode->is_plain ) { CORE::require('DBICTest/Util.pm'); Test::More::diag( 'Require invoked' . DBICTest::Util::stacktrace() ); } @@ -99,13 +99,18 @@ BEGIN { namespace::clean Try::Tiny Sub::Name + strictures + Sub::Quote Scalar::Util List::Util - Data::Compare Class::Accessor::Grouped Class::C3::Componentised + SQL::Abstract + + Module::Runtime + File::Spec )); require DBICTest::Schema; @@ -116,8 +121,8 @@ BEGIN { { register_lazy_loadable_requires(qw( Moo - Sub::Quote Context::Preserve + Data::Compare )); my $s = DBICTest::Schema->connect('dbi:SQLite::memory:'); @@ -129,7 +134,6 @@ BEGIN { { register_lazy_loadable_requires(qw( DBI - SQL::Abstract Hash::Merge )); @@ -151,7 +155,13 @@ BEGIN { # and do full populate() as well, just in case - shouldn't add new stuff { - require DBICTest; + local $ENV{DBICTEST_SQLITE_REVERSE_DEFAULT_ORDER}; + { + # in general we do not want DBICTest to load before sqla, but it is + # ok to cheat here + local $INC{'SQL/Abstract.pm'}; + require DBICTest; + } my $s = DBICTest->init_schema; is ($s->resultset('Artist')->find(1)->name, 'Caterwauler McCrae'); assert_no_missing_expected_requires();