mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-12 16:45:35 +00:00
* tests/scripts/misc/general4: Only test empty PATH on UNIX
This commit is contained in:
parent
ac159491da
commit
f5dc17ac2d
2 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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"}) {
|
||||
|
|
Loading…
Reference in a new issue