mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
kconfig: tests: check unneeded "is not set" with unmet dependency
Commit cb67ab2cd2 ("kconfig: do not write choice values when their
dependency becomes n") fixed a problem where "# CONFIG_... is not set"
for choice values are wrongly written into the .config file when they
are once visible, then become invisible later.
Add a test for this naive case.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
This commit is contained in:
14
scripts/kconfig/tests/no_write_if_dep_unmet/Kconfig
Normal file
14
scripts/kconfig/tests/no_write_if_dep_unmet/Kconfig
Normal file
@@ -0,0 +1,14 @@
|
||||
config A
|
||||
bool "A"
|
||||
|
||||
choice
|
||||
prompt "Choice ?"
|
||||
depends on A
|
||||
|
||||
config CHOICE_B
|
||||
bool "Choice B"
|
||||
|
||||
config CHOICE_C
|
||||
bool "Choice C"
|
||||
|
||||
endchoice
|
||||
Reference in New Issue
Block a user