* tests/scripts/misc/general4: Only test empty PATH on UNIX

This commit is contained in:
Paul Smith 2023-02-20 11:11:59 -05:00
parent ac159491da
commit f5dc17ac2d
2 changed files with 6 additions and 5 deletions

View file

@ -136,11 +136,13 @@ all: ; $sname
unlink($sname);
# SV 57674: ensure we use a system default PATH if one is not set
delete $ENV{PATH};
run_make_test(q!
if ($port_type eq 'UNIX') {
# SV 57674: ensure we use a system default PATH if one is not set
delete $ENV{PATH};
run_make_test(q!
a: ; @echo hi
!,
'', "hi\n");
'', "hi\n");
}
1;

View file

@ -413,7 +413,6 @@ sub get_osname
elsif ($osname =~ m%OS/2%) {
$port_type = 'OS/2';
}
# VMS has a GNV Unix mode or a DCL mode.
# The SHELL environment variable should not be defined in VMS-DCL mode.
elsif ($osname eq 'VMS' && !defined $ENV{"SHELL"}) {