mgorny created this revision. mgorny added reviewers: sammccall, MaskRay, sepavloff. Herald added subscribers: StephenFan, kadircet, arphaman. Herald added a project: All. mgorny requested review of this revision. Herald added a project: clang-tools-extra.
Set CLANG_NO_DEFAULT_CONFIG=1 for clang-tools-extra tests to prevent the system configuration files for clang from affecting the test results. https://reviews.llvm.org/D135159 Files: clang-tools-extra/clangd/test/lit.cfg.py clang-tools-extra/clangd/unittests/lit.cfg.py clang-tools-extra/include-cleaner/test/Unit/lit.cfg.py clang-tools-extra/include-cleaner/test/lit.cfg.py clang-tools-extra/pseudo/test/Unit/lit.cfg.py clang-tools-extra/pseudo/test/lit.cfg.py clang-tools-extra/test/Unit/lit.cfg.py clang-tools-extra/test/lit.cfg.py
Index: clang-tools-extra/test/lit.cfg.py =================================================================== --- clang-tools-extra/test/lit.cfg.py +++ clang-tools-extra/test/lit.cfg.py @@ -59,3 +59,8 @@ # Plugins (loadable modules) if config.has_plugins and config.llvm_plugin_ext: config.available_features.add('plugins') + +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1" Index: clang-tools-extra/test/Unit/lit.cfg.py =================================================================== --- clang-tools-extra/test/Unit/lit.cfg.py +++ clang-tools-extra/test/Unit/lit.cfg.py @@ -35,3 +35,8 @@ shlibpath = os.path.pathsep.join((config.shlibdir, shlibpath)) config.environment[shlibpath_var] = shlibpath + +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1" Index: clang-tools-extra/pseudo/test/lit.cfg.py =================================================================== --- clang-tools-extra/pseudo/test/lit.cfg.py +++ clang-tools-extra/pseudo/test/lit.cfg.py @@ -14,3 +14,8 @@ config.clang_tools_dir, config.llvm_tools_dir, config.environment['PATH'])) + +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1" Index: clang-tools-extra/pseudo/test/Unit/lit.cfg.py =================================================================== --- clang-tools-extra/pseudo/test/Unit/lit.cfg.py +++ clang-tools-extra/pseudo/test/Unit/lit.cfg.py @@ -17,3 +17,7 @@ "@SHLIBDIR@", "@LLVM_LIBS_DIR@", config.environment.get(shlibpath_var,''))) +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1" Index: clang-tools-extra/include-cleaner/test/lit.cfg.py =================================================================== --- clang-tools-extra/include-cleaner/test/lit.cfg.py +++ clang-tools-extra/include-cleaner/test/lit.cfg.py @@ -14,3 +14,8 @@ config.clang_tools_dir, config.llvm_tools_dir, config.environment['PATH'])) + +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1" Index: clang-tools-extra/include-cleaner/test/Unit/lit.cfg.py =================================================================== --- clang-tools-extra/include-cleaner/test/Unit/lit.cfg.py +++ clang-tools-extra/include-cleaner/test/Unit/lit.cfg.py @@ -16,3 +16,8 @@ config.environment[shlibpath_var] = os.path.pathsep.join(( "@SHLIBDIR@", "@LLVM_LIBS_DIR@", config.environment.get(shlibpath_var,''))) + +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1" Index: clang-tools-extra/clangd/unittests/lit.cfg.py =================================================================== --- clang-tools-extra/clangd/unittests/lit.cfg.py +++ clang-tools-extra/clangd/unittests/lit.cfg.py @@ -17,5 +17,7 @@ "@SHLIBDIR@", "@LLVM_LIBS_DIR@", config.environment.get(shlibpath_var,''))) - - +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1" Index: clang-tools-extra/clangd/test/lit.cfg.py =================================================================== --- clang-tools-extra/clangd/test/lit.cfg.py +++ clang-tools-extra/clangd/test/lit.cfg.py @@ -36,3 +36,8 @@ if config.have_zlib: config.available_features.add('zlib') + +# It is not realistically possible to account for all options that could +# possibly be present in system and user configuration files, so disable +# default configs for the test runs. +config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1"
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits