[Catalyst-commits] r12852 - in HTTP-Request-AsCGI/trunk: . t
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Tue Feb 9 03:26:36 GMT 2010
Author: t0m
Date: 2010-02-09 03:26:35 +0000 (Tue, 09 Feb 2010)
New Revision: 12852
Modified:
HTTP-Request-AsCGI/trunk/Changes
HTTP-Request-AsCGI/trunk/t/05env.t
Log:
Localise %ENV to fix test bug
Modified: HTTP-Request-AsCGI/trunk/Changes
===================================================================
--- HTTP-Request-AsCGI/trunk/Changes 2010-02-09 03:23:23 UTC (rev 12851)
+++ HTTP-Request-AsCGI/trunk/Changes 2010-02-09 03:26:35 UTC (rev 12852)
@@ -1,5 +1,7 @@
This file documents the revision history for Perl extension HTTP::Request::AsCGI.
+ - Fixed RT#46653 by localising %ENV in the test so that it can't be
+ broken from outside.
- Fixed tests on perl <= 5.6.2 by skipping if Encode is not installed.
(RT#52456)
Modified: HTTP-Request-AsCGI/trunk/t/05env.t
===================================================================
--- HTTP-Request-AsCGI/trunk/t/05env.t 2010-02-09 03:23:23 UTC (rev 12851)
+++ HTTP-Request-AsCGI/trunk/t/05env.t 2010-02-09 03:26:35 UTC (rev 12852)
@@ -16,6 +16,7 @@
plan tests => 11;
+local %ENV;
$ENV{__PRESERVE_ENV_TEST} = 1;
my $r = HTTP::Request->new( GET => 'http://www.host.com/cgi-bin/script.cgi/my%20path%2F?a=1&b=2', [ 'X-Test' => 'Test' ] );
More information about the Catalyst-commits
mailing list