X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F52leaks.t;h=eb72a826524cc401884ace60c98bbde87d9870af;hb=c97338007ede15e7c62095a642b3de382a3508bd;hp=e36e3e9dde94f77bdb4b106e11224fed1bbce0b2;hpb=8d6b1478d8fa6f7c76e313ee72a72d5eb4c24d03;p=dbsrgits%2FDBIx-Class.git diff --git a/t/52leaks.t b/t/52leaks.t index e36e3e9..eb72a82 100644 --- a/t/52leaks.t +++ b/t/52leaks.t @@ -111,6 +111,7 @@ unless (DBICTest::RunMode->is_plain) { require DBI; require DBD::SQLite; require FileHandle; + require Moo; %$weak_registry = (); } @@ -422,6 +423,12 @@ assert_empty_weakregistry ($weak_registry); # this is ugly and dirty but we do not yet have a Test::Embedded or # similar +# set up -I +require Config; +$ENV{PERL5LIB} = join ($Config::Config{path_sep}, @INC); +($ENV{PATH}) = $ENV{PATH} =~ /(.+)/; + + my $persistence_tests = { PPerl => { cmd => [qw/pperl --prefork=1/, __FILE__], @@ -446,10 +453,6 @@ SKIP: { skip 'Main test failed - skipping persistent env tests', 1 unless $TB->is_passing; - # set up -I - require Config; - local $ENV{PERL5LIB} = join ($Config::Config{path_sep}, @INC); - local $ENV{DBICTEST_IN_PERSISTENT_ENV} = 1; require IPC::Open2;