patch@2009-05-25.21:50:08 magic.t leaves $ENV{foo} on VMS.
[p5sagit/p5-mst-13.2.git] / t / op / magic.t
index 81d7142..fd2307b 100755 (executable)
@@ -30,6 +30,11 @@ $PERL = $ENV{PERL}
        $Is_MSWin32            ? '.\perl' :
        './perl');
 
+END {
+    # On VMS, environment variable changes are peristent after perl exits
+    delete $ENV{'FOO'} if $Is_VMS;
+}
+
 eval '$ENV{"FOO"} = "hi there";';      # check that ENV is inited inside eval
 # cmd.exe will echo 'variable=value' but 4nt will echo just the value
 # -- Nikola Knezevic