]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/test_driver.pl (toplevel): [SV 63156] Keep temp env vars
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sat, 8 Oct 2022 15:53:19 +0000 (11:53 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 8 Oct 2022 15:53:19 +0000 (11:53 -0400)
tests/test_driver.pl

index 2beb7c99bb4e9f0d4da349d2b99f124a60b0df77..18ee854dda29139d6dccebd1e64e11b73b3d15fe 100644 (file)
@@ -219,9 +219,6 @@ sub toplevel
   $makeENV{LANG} = 'C';
   $makeENV{LANGUAGE} = 'C';
 
-  # Replace the environment with the new one
-  resetENV();
-
   $| = 1;                     # unbuffered output
 
   $debug = 0;                 # debug flag
@@ -271,6 +268,9 @@ sub toplevel
   $makeENV{TMP} = $temppath;
   $makeENV{TEMP} = $temppath;
 
+  # Replace the environment with the new one
+  resetENV();
+
   $workpath = "$cwdslash$workdir";
   $scriptpath = "$cwdslash$scriptdir";