t/run/mad.t: Avoid %ENV assignment
authorFather Chrysostomos <sprout@cpan.org>
Sun, 16 Sep 2012 14:20:45 +0000 (07:20 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 18 Sep 2012 03:41:02 +0000 (20:41 -0700)
I see no skip on VMS, so use an %ENV localisation that it supports.

t/run/mad.t

index f777153..83023c5 100644 (file)
@@ -30,7 +30,7 @@ END {
 plan tests => 4;
 
 {
-    local %ENV = %ENV;
+    delete local $ENV{$_} for keys %ENV;
     my $fn = File::Spec->catfile(File::Spec->curdir(), "withoutT.xml");
     $ENV{PERL_XMLDUMP} = $fn;
     fresh_perl_is('print q/hello/', '', {}, 'mad without -T');
@@ -38,7 +38,7 @@ plan tests => 4;
 }
 
 {
-    local %ENV = %ENV;
+    delete local $ENV{$_} for keys %ENV;
     my $fn = File::Spec->catfile(File::Spec->curdir(), "withT.xml");
     fresh_perl_is('print q/hello/', 'hello', { switches => [ "-T" ] },
                  'mad with -T');