[lit] Move the recursiveExpansionLimit setting to TestingConfig
authorLouis Dionne <ldionne@apple.com>
Fri, 3 Apr 2020 16:49:09 +0000 (12:49 -0400)
committerLouis Dionne <ldionne@apple.com>
Mon, 6 Apr 2020 17:58:00 +0000 (13:58 -0400)
commit8a42bf24ae99d9d207ec140dadadc7d992bd2fa1
tree8f06692e7d56d69a350ad10d8018d8e447586465
parent6ddc5256672dc0b9aa57a49696e1c29d85cd985f
[lit] Move the recursiveExpansionLimit setting to TestingConfig

The LitConfig is shared across the whole test suite. However, since
enabling recursive expansion can be a breaking change for some test
suites, it's important to confine the setting to test suites that
enable it explicitly.

Note that other issues were raised with the way recursiveExpansionLimit
operates. However, this commit simply moves the setting to the right
place -- the mechanism by which it works can be improved independently.

Differential Revision: https://reviews.llvm.org/D77415
13 files changed:
libcxx/test/lit.cfg
libcxx/utils/libcxx/test/format.py
libcxx/utils/libcxx/test/newformat.py
libcxxabi/test/lit.cfg
llvm/docs/CommandGuide/lit.rst
llvm/utils/lit/lit/LitConfig.py
llvm/utils/lit/lit/TestRunner.py
llvm/utils/lit/lit/TestingConfig.py
llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/does-not-substitute-within-limit/lit.cfg
llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/negative-integer/lit.cfg
llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/not-an-integer/lit.cfg
llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/set-to-none/lit.cfg
llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/substitutes-within-limit/lit.cfg