summaryrefslogtreecommitdiffstats
path: root/llvm/test/Unit
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 01:23:49 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 01:23:49 +0000
commitda817bf231d1ffe1508f4693305342f56c3abd5b (patch)
tree22f870c194db6ab40236668227e212d8680f36c8 /llvm/test/Unit
parentf27da4e57863934aa4657d7d0360e753c3f8c4e8 (diff)
downloadbcm5719-llvm-da817bf231d1ffe1508f4693305342f56c3abd5b.tar.gz
bcm5719-llvm-da817bf231d1ffe1508f4693305342f56c3abd5b.zip
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. llvm-svn: 121095
Diffstat (limited to 'llvm/test/Unit')
-rw-r--r--llvm/test/Unit/lit.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Unit/lit.cfg b/llvm/test/Unit/lit.cfg
index a41f0937f9a..35092964a5c 100644
--- a/llvm/test/Unit/lit.cfg
+++ b/llvm/test/Unit/lit.cfg
@@ -21,6 +21,13 @@ if llvm_obj_root is not None:
llvm_build_mode = getattr(config, 'llvm_build_mode', "Debug")
config.test_format = lit.formats.GoogleTest(llvm_build_mode, 'Tests')
+# Propagate the temp directory. Windows requires this because it uses \Windows\
+# if none of these are present.
+if 'TMP' in os.environ:
+ config.environment['TMP'] = os.environ['TMP']
+if 'TEMP' in os.environ:
+ config.environment['TEMP'] = os.environ['TEMP']
+
###
# If necessary, point the dynamic loader at libLLVM.so.
OpenPOWER on IntegriCloud