Skip to content

Commit 8dde571

Browse files
committed
kconfig: tests: fix recursive inclusion unit test
Adding SPDX license identifier is pretty safe; however, here is one exception. Since commit ec8f24b ("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: ec8f24b ("treewide: Add SPDX license identifier - Makefile/Kconfig") Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 6d3db46 commit 8dde571

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Recursive inclusion detected.
22
Inclusion path:
33
current file : Kconfig.inc1
4-
included from: Kconfig.inc3:1
5-
included from: Kconfig.inc2:3
6-
included from: Kconfig.inc1:4
4+
included from: Kconfig.inc3:2
5+
included from: Kconfig.inc2:4
6+
included from: Kconfig.inc1:5

0 commit comments

Comments
 (0)