utils/lit/lit/TestingConfig.py: Pass TEMP and TMP to tests on Win32 hosts.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 20 Aug 2011 05:44:58 +0000 (05:44 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 20 Aug 2011 05:44:58 +0000 (05:44 +0000)
Win32 GetTempPath() tends to pick up %WINDIR% when neither TEMP nor TMP was found. %WINDIR% should not be treated writable on recent Windows OS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138192 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestingConfig.py

index a405a0c2e1b23eeda5084d7b7702ff4b80b450f0..a92dca8fb1b1ec2671f6daa25caaa361a5c3e3da 100644 (file)
@@ -23,6 +23,8 @@ class TestingConfig:
                         'LLVM_DISABLE_CRT_DEBUG' : '1',
                         'PATHEXT' : os.environ.get('PATHEXT',''),
                         'PYTHONUNBUFFERED' : '1',
+                        'TEMP' : os.environ.get('TEMP',''),
+                        'TMP' : os.environ.get('TMP',''),
                         })
 
             config = TestingConfig(parent,