linux-stable/scripts/kconfig/tests/choice_value_with_m_dep
Masahiro Yamada ee23661065 kconfig: tests: check visibility of tristate choice values in y choice
If tristate choice values depend on symbols set to 'm', they should be
hidden when the choice containing them is changed from 'm' to 'y'
(i.e. exclusive choice).

This issue was fixed by commit fa64e5f6a3 ("kconfig/symbol.c: handle
choice_values that depend on 'm' symbols").

Add a test case to avoid regression.

For the input in this unit test, there is a room for argument if
"# CONFIG_CHOICE1 is not set" should be written to the .config file.

After commit fa64e5f6a3, this line was written to the .config file.

With commit cb67ab2cd2 ("kconfig: do not write choice values when
their dependency becomes n"), it is not written now.

In this test, "# CONFIG_CHOICE1 is not set" is don't care.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
2018-03-26 02:04:03 +09:00
..
__init__.py kconfig: tests: check visibility of tristate choice values in y choice 2018-03-26 02:04:03 +09:00
config kconfig: tests: check visibility of tristate choice values in y choice 2018-03-26 02:04:03 +09:00
expected_config kconfig: tests: check visibility of tristate choice values in y choice 2018-03-26 02:04:03 +09:00
expected_stdout kconfig: tests: check visibility of tristate choice values in y choice 2018-03-26 02:04:03 +09:00
Kconfig kconfig: tests: check visibility of tristate choice values in y choice 2018-03-26 02:04:03 +09:00