X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fextra%2Flean_startup.t;h=8c220dd74dee87d8aaa4d8e481313301dd83cadd;hb=36372426fcb6f197d34cdca70e629a3c0da5940f;hp=9675ef080b95dba9ee29188c0de347f78f64924e;hpb=750a4ad26c8fbe0f513a3abd4a9cb79ef8f40884;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/extra/lean_startup.t b/xt/extra/lean_startup.t index 9675ef0..8c220dd 100644 --- a/xt/extra/lean_startup.t +++ b/xt/extra/lean_startup.t @@ -53,10 +53,8 @@ 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} or ! DBICTest::RunMode->is_plain ) { - CORE::require('DBICTest/Util.pm'); - Test::More::diag( 'Require invoked' . DBICTest::Util::stacktrace() ); - } + CORE::require('DBICTest/Util.pm'); + Test::More::diag( 'Require invoked' . DBICTest::Util::stacktrace() ); } return $res; @@ -83,7 +81,12 @@ BEGIN { } } -BEGIN { $ENV{DBICTEST_VIA_REPLICATED} = 0 } +BEGIN { + delete $ENV{$_} for qw( + DBICTEST_VIA_REPLICATED + DBICTEST_DEBUG_CONCURRENCY_LOCKS + ); +} ####### ### This is where the test starts @@ -194,16 +197,11 @@ sub assert_no_missing_expected_requires { my $nl; for my $mod (keys %$expected_dbic_deps) { (my $modfn = "$mod.pm") =~ s/::/\//g; - unless ($INC{$modfn}) { - my $err = sprintf "Expected DBIC core dependency '%s' never loaded - %s needs adjustment", $mod, __FILE__; - if (DBICTest::RunMode->is_smoker or DBICTest::RunMode->is_author) { - fail ($err) - } - else { - diag "\n" unless $nl->{$mod}++; - diag $err; - } - } + fail sprintf ( + "Expected DBIC core dependency '%s' never loaded - %s needs adjustment", + $mod, + __FILE__ + ) unless $INC{$modfn}; } pass(sprintf 'All modules expected at %s line %s loaded by DBIC: %s', __FILE__,