GNU Linux-libre 4.19.263-gnu1
[releases.git] / scripts / kconfig / tests / preprocess / circular_expansion / __init__.py
1 # SPDX-License-Identifier: GPL-2.0
2 """
3 Detect circular variable expansion.
4
5 If a recursively expanded variable references itself (eventually),
6 it should fail with an error message.
7 """
8
9 def test(conf):
10     assert conf.oldaskconfig() != 0
11     assert conf.stderr_matches('expected_stderr')