From: Jarkko Hietaniemi Date: Sat, 29 Sep 2001 13:54:04 +0000 (+0000) Subject: Save and restore $ENV{'SYS$LOGIN'} only in VMS. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d6b165414a36b2f7babc9ffdf83d659589dd9eb;p=p5sagit%2Fp5-mst-13.2.git Save and restore $ENV{'SYS$LOGIN'} only in VMS. p4raw-id: //depot/perl@12267 --- diff --git a/t/op/chdir.t b/t/op/chdir.t index 764e31a..c668494 100644 --- a/t/op/chdir.t +++ b/t/op/chdir.t @@ -11,12 +11,13 @@ require "test.pl"; plan(tests => 31); my $IsVMS = $^O eq 'VMS'; + my ($saved_sys_login); BEGIN { - $saved_sys_login = $ENV{'SYS$LOGIN'}; + $saved_sys_login = $ENV{'SYS$LOGIN'} if $^O eq 'VMS' } END { - $ENV{'SYS$LOGIN'} = $saved_sys_login; + $ENV{'SYS$LOGIN'} = $saved_sys_login if $^O eq 'VMS'; } # Might be a little early in the testing process to start using these,