[llvm-commits] [llvm] r121095 - in /llvm/trunk/test: Unit/lit.cfg lit.cfg
Michael J. Spencer
bigcheesegs at gmail.com
Mon Dec 6 17:23:49 PST 2010
Author: mspencer
Date: Mon Dec 6 19:23:49 2010
New Revision: 121095
URL: http://llvm.org/viewvc/llvm-project?rev=121095&view=rev
Log:
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.
Modified:
llvm/trunk/test/Unit/lit.cfg
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/Unit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Unit/lit.cfg?rev=121095&r1=121094&r2=121095&view=diff
==============================================================================
--- llvm/trunk/test/Unit/lit.cfg (original)
+++ llvm/trunk/test/Unit/lit.cfg Mon Dec 6 19:23:49 2010
@@ -21,6 +21,13 @@
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.
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=121095&r1=121094&r2=121095&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Mon Dec 6 19:23:49 2010
@@ -58,6 +58,13 @@
if 'LIB' in os.environ:
config.environment['LIB'] = os.environ['LIB']
+# 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']
+
# Propagate LLVM_SRC_ROOT into the environment.
config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')
More information about the llvm-commits
mailing list