Skip to content

Commit 33e2b96

Browse files
committed
Avoid list assignment to %ENV in 10_rand.t
This test was failing on VMS because list assignment to %ENV is not allowed. So just override the slice of %ENV that the test is concerned with.
1 parent ebef41c commit 33e2b96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/local/10_rand.t

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ sub test_rand_file_name_libressl
5959
sub test_rand_file_name_openssl
6060
{
6161
my $file_name;
62-
local %ENV = %ENV;
63-
delete $ENV{RANDFILE};
62+
delete local @ENV{'RANDFILE', 'HOME'};
6463

6564
# NOTE: If there are test failures, are you using some type of
6665
# setuid environment? If so, this may affect usability of

0 commit comments

Comments
 (0)