diff options
author | Paul Smith <psmith@gnu.org> | 2023-02-20 11:11:59 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-02-20 11:11:59 -0500 |
commit | f5dc17ac2dcf9093d15c67facc8a481212c4c360 (patch) | |
tree | 7f9eb68d5786010373531f92d9461f130a395a30 | |
parent | ac159491da0f837f7a4b23591c15c1b1d78eb616 (diff) | |
download | make-git-f5dc17ac2dcf9093d15c67facc8a481212c4c360.tar.gz |
* tests/scripts/misc/general4: Only test empty PATH on UNIX
-rw-r--r-- | tests/scripts/misc/general4 | 10 | ||||
-rw-r--r-- | tests/test_driver.pl | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/scripts/misc/general4 b/tests/scripts/misc/general4 index cfd69a89..8dcd89fa 100644 --- a/tests/scripts/misc/general4 +++ b/tests/scripts/misc/general4 @@ -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; diff --git a/tests/test_driver.pl b/tests/test_driver.pl index 38b848f2..93801956 100644 --- a/tests/test_driver.pl +++ b/tests/test_driver.pl @@ -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"}) { |