summaryrefslogtreecommitdiff
path: root/tests/test_driver.pl
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-02-27 17:44:16 -0500
committerPaul Smith <psmith@gnu.org>2022-02-27 17:47:19 -0500
commit8cdaabbf8e129fc15ee1456d4fce9d10bf4bad55 (patch)
treeaf4466344c701b42e34e5bb117b44fb30d23c02f /tests/test_driver.pl
parent2be866143394f5fa5fdeaa545003aba26dc72956 (diff)
downloadmake-git-8cdaabbf8e129fc15ee1456d4fce9d10bf4bad55.tar.gz
tests: Preserve Windows temp environment variables
* src/main.c (main): Show the temp filename on error. Also on Windows prefer TMP, then TEMP, and only lastly TMPDIR. * tests/test_driver.pl: Add TMP, TEMP, and USERPROFILE to the list of environment variables to preserve.
Diffstat (limited to 'tests/test_driver.pl')
-rw-r--r--tests/test_driver.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_driver.pl b/tests/test_driver.pl
index 71aefac9..5522ac11 100644
--- a/tests/test_driver.pl
+++ b/tests/test_driver.pl
@@ -173,16 +173,16 @@ sub toplevel
{
# Pull in benign variables from the user's environment
- foreach (# UNIX-specific things
+ foreach (# POSIX-specific things
'TZ', 'TMPDIR', 'HOME', 'USER', 'LOGNAME', 'PATH',
'LD_LIBRARY_PATH',
- # SAN things
+ # *SAN things
'ASAN_OPTIONS', 'UBSAN_OPTIONS',
# Purify things
'PURIFYOPTIONS',
- # Windows NT-specific stuff
- 'Path', 'SystemRoot',
- # DJGPP-specific stuff
+ # Windows-specific things
+ 'Path', 'SystemRoot', 'TEMP', 'TMP', 'USERPROFILE',
+ # DJGPP-specific things
'DJDIR', 'DJGPP', 'SHELL', 'COMSPEC', 'HOSTNAME', 'LFN',
'FNCASE', '387', 'EMU387', 'GROUP'
) {