kconfig: tests: test if recursive dependencies are detected

Recursive dependency should be detected and warned.  Test this.

This indirectly tests the line number increments.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
This commit is contained in:
Masahiro Yamada
2018-03-13 18:12:11 +09:00
parent 3e4888c2e3
commit 29c434f367
3 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
"""
Warn recursive inclusion.
Recursive dependency should be warned.
"""
def test(conf):
assert conf.oldaskconfig() == 0
assert conf.stderr_contains('expected_stderr')