Fix test runtime environment on Windows
authorEric Fiselier <eric@efcs.ca>
Tue, 9 May 2017 23:57:22 +0000 (23:57 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 9 May 2017 23:57:22 +0000 (23:57 +0000)
llvm-svn: 302602

libcxx/utils/libcxx/test/config.py

index 4778434..fad9e8a 100644 (file)
@@ -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