forked from Minki/linux
f1575595d1
Originally, recursive dependency was a fatal error for Kconfig
because Kconfig cannot compute symbol values in such a situation.
Commit d595cea624
("kconfig: print more info when we see a recursive
dependency") changed it to a warning, which I guess was not intentional.
Get it back to an error again.
Also, rename the unit test directory "warn_recursive_dep" to
"err_recursive_dep" so that it matches to the behavior.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Dirk Gouders <dirk@gouders.net>
11 lines
235 B
Python
11 lines
235 B
Python
# SPDX-License-Identifier: GPL-2.0
|
|
"""
|
|
Detect recursive dependency error.
|
|
|
|
Recursive dependency should be treated as an error.
|
|
"""
|
|
|
|
def test(conf):
|
|
assert conf.oldaskconfig() == 1
|
|
assert conf.stderr_contains('expected_stderr')
|