All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kconfig: Fix repeated include selftest expectation
@ 2026-05-20  7:08 Zhou Yuhang
  2026-05-20 13:24 ` Nicolas Schier
  2026-05-20 22:43 ` Nathan Chancellor
  0 siblings, 2 replies; 3+ messages in thread
From: Zhou Yuhang @ 2026-05-20  7:08 UTC (permalink / raw)
  To: nathan, nsc; +Cc: linux-kbuild, linux-kernel, Zhou Yuhang

From: Zhou Yuhang <zhouyuhang@kylinos.cn>

The err_repeated_inc test was added with an expected stderr fixture
that does not match the diagnostic printed by kconfig.

Running "make testconfig" currently fails in that test even though the
parser reports the duplicated include correctly:

  [stderr]
  Kconfig.inc1:4: error: repeated inclusion of Kconfig.inc3
  Kconfig.inc2:3: note: location of first inclusion of Kconfig.inc3

The fixture expects "Repeated" and "Location" with capital letters, but
the diagnostic emitted by scripts/kconfig/util.c uses lowercase words.
Update the fixture to match the real message.

Fixes: 102d712ded3e ("kconfig: Error out on duplicated kconfig inclusion")
Signed-off-by: Zhou Yuhang <zhouyuhang@kylinos.cn>
---
 scripts/kconfig/tests/err_repeated_inc/expected_stderr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/tests/err_repeated_inc/expected_stderr b/scripts/kconfig/tests/err_repeated_inc/expected_stderr
index 95d90d6a93c5..53071430ea7d 100644
--- a/scripts/kconfig/tests/err_repeated_inc/expected_stderr
+++ b/scripts/kconfig/tests/err_repeated_inc/expected_stderr
@@ -1,2 +1,2 @@
-Kconfig.inc1:4: error: Repeated inclusion of Kconfig.inc3
-Kconfig.inc2:3: note: Location of first inclusion of Kconfig.inc3
+Kconfig.inc1:4: error: repeated inclusion of Kconfig.inc3
+Kconfig.inc2:3: note: location of first inclusion of Kconfig.inc3
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-20 22:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-20  7:08 [PATCH] kconfig: Fix repeated include selftest expectation Zhou Yuhang
2026-05-20 13:24 ` Nicolas Schier
2026-05-20 22:43 ` Nathan Chancellor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.