Index: libcxx/test/libcxx/selftest/dsl/dsl.sh.py =================================================================== --- libcxx/test/libcxx/selftest/dsl/dsl.sh.py +++ libcxx/test/libcxx/selftest/dsl/dsl.sh.py @@ -64,6 +64,7 @@ params={}) self.config = lit.TestingConfig.TestingConfig.fromdefaults(self.litConfig) + self.config.environment = dict(os.environ) self.config.test_source_root = SOURCE_ROOT self.config.test_exec_root = EXEC_PATH self.config.recursiveExpansionLimit = 10 Index: libcxx/utils/libcxx/test/newconfig.py =================================================================== --- libcxx/utils/libcxx/test/newconfig.py +++ libcxx/utils/libcxx/test/newconfig.py @@ -6,6 +6,9 @@ # #===----------------------------------------------------------------------===## +import os + + def _getSubstitution(substitution, config): for (orig, replacement) in config.substitutions: if orig == substitution: @@ -14,6 +17,7 @@ def configure(parameters, features, config, lit_config): note = lambda s: lit_config.note("({}) {}".format(config.name, s)) + config.environment = dict(os.environ) # Apply the actions supplied by parameters to the configuration first, since # parameters are things that we request explicitly and which might influence