diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-10-04 16:36:15 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-10-04 20:08:56 +0200 |
commit | 52ce6776cf98e993c6ec04ae54b52e1354fff917 (patch) | |
tree | 9e08eaa8f87887ac6e044300acbd48505d489f74 /clang-tools-extra/pseudo | |
parent | b0aed823d447c1e0d4e5bb82d7e14830d66c75d4 (diff) | |
download | llvm-52ce6776cf98e993c6ec04ae54b52e1354fff917.tar.gz |
[clang-tools-extra] [test] Use CLANG_NO_DEFAULT_CONFIG=1
Set CLANG_NO_DEFAULT_CONFIG=1 for clang-tools-extra tests to prevent
the system configuration files for clang from affecting the test
results.
Differential Revision: https://reviews.llvm.org/D135159
Diffstat (limited to 'clang-tools-extra/pseudo')
-rw-r--r-- | clang-tools-extra/pseudo/test/Unit/lit.cfg.py | 4 | ||||
-rw-r--r-- | clang-tools-extra/pseudo/test/lit.cfg.py | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/clang-tools-extra/pseudo/test/Unit/lit.cfg.py b/clang-tools-extra/pseudo/test/Unit/lit.cfg.py index 1ba9626e489a..b76d7dd0ee12 100644 --- a/clang-tools-extra/pseudo/test/Unit/lit.cfg.py +++ b/clang-tools-extra/pseudo/test/Unit/lit.cfg.py @@ -17,3 +17,7 @@ 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" diff --git a/clang-tools-extra/pseudo/test/lit.cfg.py b/clang-tools-extra/pseudo/test/lit.cfg.py index d92c95c80b5f..01b1b7014fec 100644 --- a/clang-tools-extra/pseudo/test/lit.cfg.py +++ b/clang-tools-extra/pseudo/test/lit.cfg.py @@ -14,3 +14,8 @@ config.environment['PATH'] = os.path.pathsep.join(( 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" |