linux-zen-server/scripts/kconfig/tests/preprocess/circular_expansion/__init__.py

12 lines
288 B
Python
Raw Permalink Normal View History

2023-08-30 17:53:23 +02:00
# SPDX-License-Identifier: GPL-2.0
"""
Detect circular variable expansion.
If a recursively expanded variable references itself (eventually),
it should fail with an error message.
"""
def test(conf):
assert conf.oldaskconfig() != 0
assert conf.stderr_matches('expected_stderr')