]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kconfig: tests: check unneeded "is not set" with unmet dependency
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 13 Mar 2018 09:12:07 +0000 (18:12 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:04:03 +0000 (02:04 +0900)
commit930c429a656fdba0c7f76b9a36ec2698f946e8e3
tree98bb0a09b30fc3e4d5008e4bf787867eeb541e7e
parentb76960c0f6b25d447a1493c4388defb9e8e76c63
kconfig: tests: check unneeded "is not set" with unmet dependency

Commit cb67ab2cd2b8 ("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>
scripts/kconfig/tests/no_write_if_dep_unmet/Kconfig [new file with mode: 0644]
scripts/kconfig/tests/no_write_if_dep_unmet/__init__.py [new file with mode: 0644]
scripts/kconfig/tests/no_write_if_dep_unmet/config [new file with mode: 0644]
scripts/kconfig/tests/no_write_if_dep_unmet/expected_config [new file with mode: 0644]