llvm.org GIT mirror llvm / 44d392a
Test: Fix Support.Path and _all_ of the unittest death tests. GetTempPath defaults to \Windows\. If I typed anything else it would just decline into cursing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121095 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 8 years ago
2 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1919 # testFormat: The test format to use to interpret tests.
2020 llvm_build_mode = getattr(config, 'llvm_build_mode', "Debug")
2121 config.test_format = lit.formats.GoogleTest(llvm_build_mode, 'Tests')
22
23 # Propagate the temp directory. Windows requires this because it uses \Windows\
24 # if none of these are present.
25 if 'TMP' in os.environ:
26 config.environment['TMP'] = os.environ['TMP']
27 if 'TEMP' in os.environ:
28 config.environment['TEMP'] = os.environ['TEMP']
2229
2330 ###
2431
5656 # Propagate 'LIB' through the environment.
5757 if 'LIB' in os.environ:
5858 config.environment['LIB'] = os.environ['LIB']
59
60 # Propagate the temp directory. Windows requires this because it uses \Windows\
61 # if none of these are present.
62 if 'TMP' in os.environ:
63 config.environment['TMP'] = os.environ['TMP']
64 if 'TEMP' in os.environ:
65 config.environment['TEMP'] = os.environ['TEMP']
5966
6067 # Propagate LLVM_SRC_ROOT into the environment.
6168 config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')