]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: tests: fix recursive inclusion unit test
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 25 May 2019 11:49:19 +0000 (20:49 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 4 Jun 2019 17:33:10 +0000 (02:33 +0900)
commite2b13cf423981983a7f2034d8e20b146428ada3e
tree7f681a8cbb04158cf4d37183e5939bb94342e73c
parent3f4b6305d76377383942e340d11077f49f8af085
kconfig: tests: fix recursive inclusion unit test

Adding SPDX license identifier is pretty safe; however, here is one
exception.

Since commit 097d06b8a9ee ("treewide: Add SPDX license identifier -
Makefile/Kconfig"), "make testconfig" would not pass.

When Kconfig detects a circular file inclusion, it displays error
messages with a file name and a line number prefixed to each line.

The unit test checks if Kconfig emits the error messages correctly
(this also checks the line number correctness).

Now that the test input has the SPDX license identifier at the very top,
the line numbers in the expected stderr should be incremented by 1.

Fixes: 097d06b8a9ee ("treewide: Add SPDX license identifier - Makefile/Kconfig")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/tests/err_recursive_inc/expected_stderr