X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F53lean_startup.t;h=248925ad9e11c3ed9099177b8ffe9776e76e1be0;hb=a2f228547345e788da5a047024c41f83513e92b8;hp=8af340ab5dc64a481f339baa9ef621842bd5b6e5;hpb=9345b14c6c86aa8888bf5d47a569ee9bbde24f47;p=dbsrgits%2FDBIx-Class.git diff --git a/t/53lean_startup.t b/t/53lean_startup.t index 8af340a..248925a 100644 --- a/t/53lean_startup.t +++ b/t/53lean_startup.t @@ -17,7 +17,7 @@ BEGIN { use strict; use warnings; use Test::More; -use Data::Dumper; +use DBICTest::Util 'stacktrace'; # Package::Stash::XS is silly and fails if a require hook contains regular # expressions on perl < 5.8.7. Load the damned thing if the case @@ -32,13 +32,16 @@ BEGIN { strict warnings + constant + Config + base mro overload + Exporter B - locale - + Devel::GlobalDestruction namespace::clean Try::Tiny Context::Preserve @@ -50,6 +53,7 @@ BEGIN { Data::Compare DBI + DBI::Const::GetInfoType SQL::Abstract Carp @@ -94,13 +98,7 @@ BEGIN { ) { fail ("Unexpected require of '$req' by $caller[0] ($caller[1] line $caller[2])"); - if ($ENV{TEST_VERBOSE}) { - my ($i, @stack) = 1; - while (my @f = caller($i++) ) { - push @stack, \@f; - } - diag Dumper(\@stack); - } + diag( 'Require invoked' . stacktrace() ) if $ENV{TEST_VERBOSE}; } }; }