From: Florian Ragwitz Date: Sat, 4 Dec 2010 21:19:41 +0000 (+0000) Subject: Use the proper way of setting @INC for tests X-Git-Tag: 5.80030~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4cd3d167221f7991ecb212f254b77f7461e12c9a Use the proper way of setting @INC for tests --- diff --git a/t/author/http-server.t b/t/author/http-server.t index 5bab59b..0ee12eb 100644 --- a/t/author/http-server.t +++ b/t/author/http-server.t @@ -88,13 +88,12 @@ sub check_port { sub prove { my ($inc, $tests) = @_; if (!(my $pid = fork)) { - unshift @INC, @{ $inc }; - require TAP::Harness; my $aggr = -e '.aggregating'; my $harness = TAP::Harness->new({ - ($aggr ? (test_args => $tests) : ()) + ($aggr ? (test_args => $tests) : ()), + lib => $inc, }); my $aggregator = $aggr