]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/misc/general4: Only test empty PATH on UNIX
authorPaul Smith <psmith@gnu.org>
Mon, 20 Feb 2023 16:11:59 +0000 (11:11 -0500)
committerPaul Smith <psmith@gnu.org>
Mon, 20 Feb 2023 16:11:59 +0000 (11:11 -0500)
tests/scripts/misc/general4
tests/test_driver.pl

index cfd69a8987cbb3d8071ca12879504cf212102f41..8dcd89facb742882f4c840570474186b85c533f8 100644 (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;
index 38b848f2bf258da9eea005ddc49863792f903f7b..93801956104d19255035e0acf5bf1f064d8a0c4b 100644 (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"}) {