summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-05-09 23:57:22 +0000
committerEric Fiselier <eric@efcs.ca>2017-05-09 23:57:22 +0000
commitdf432266f08c23d62e5521b3914ee3da6ecb5b1d (patch)
treec03f200797a875bf514b0087800fcec532543da8 /utils
parent01c2bb36774643c3d3ef81e7b85b163501e0d863 (diff)
Fix test runtime environment on Windows
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/libcxx/test/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/libcxx/test/config.py b/utils/libcxx/test/config.py
index 47784348d..fad9e8af1 100644
--- a/utils/libcxx/test/config.py
+++ b/utils/libcxx/test/config.py
@@ -67,7 +67,10 @@ class Configuration(object):
self.abi_library_root = None
self.link_shared = self.get_lit_bool('enable_shared', default=True)
self.debug_build = self.get_lit_bool('debug_build', default=False)
- self.exec_env = {}
+ # FIXME: Some tests on Windows require we copy all of the environment
+ # variables into the runtime environment. Should we do this on other
+ # platforms too?
+ self.exec_env = {} if not self.is_windows else dict(os.environ)
self.use_target = False
self.use_system_cxx_lib = False
self.use_clang_verify = False