summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2015-07-12 16:33:26 -0500
committerCraig A. Berry <craigberry@mac.com>2015-07-12 16:33:26 -0500
commit41349288283615495b6de1523783d60c9fd7310b (patch)
tree4a52874bd19741f68c4dc0289cf9aca155563c4e
parent83c1fffeadddac231b705fc8a420de87fd4f5ea3 (diff)
downloadperl-41349288283615495b6de1523783d60c9fd7310b.tar.gz
chdir.t fix-up for VMS.
There is no problem with setting or deleting HOME as there was back in 58277c145607d, but there is still no way to delete SYS$LOGIN from the job table. So we do have to skip testing for what happens with chdir() when the environment is clear, but it's not conditional on $Config{d_setenv}.
-rw-r--r--t/op/chdir.t7
1 files changed, 3 insertions, 4 deletions
diff --git a/t/op/chdir.t b/t/op/chdir.t
index 62ac3b65a6..a5ea76acc7 100644
--- a/t/op/chdir.t
+++ b/t/op/chdir.t
@@ -168,7 +168,6 @@ sub clean_env {
# Can't actually delete SYS$ stuff on VMS.
next if $IsVMS && $env eq 'SYS$LOGIN';
- next if $IsVMS && $env eq 'HOME' && !$Config{'d_setenv'};
# On VMS, %ENV is many layered.
delete $ENV{$env} while exists $ENV{$env};
@@ -197,7 +196,7 @@ foreach my $key (@magic_envs) {
no warnings 'uninitialized';
clean_env;
- $ENV{$key} = catdir $Cwd, ($IsVMS ? 'OP' : 'op');
+ $ENV{$key} = catdir $Cwd, 'op';
check_env($key);
}
@@ -206,8 +205,8 @@ foreach my $key (@magic_envs) {
clean_env;
SKIP:
{
- $IsVMS && !$Config{'d_setenv'}
- and skip "Can't reset HOME, so chdir() test meaningless", 2;
+ $IsVMS
+ and skip "Can't delete SYS\$LOGIN, so chdir() test meaningless", 2;
$! = 0;
ok( !chdir(), 'chdir() w/o any ENV set' );
is( $!+0, EINVAL, 'check $! set to EINVAL');