From 3ecf3d3373302338a305e1789baf84160d765871 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 10 Dec 2012 14:59:14 +0100 Subject: Add one more is_modifiable() test. --- kconfigtest.py | 3 ++- tests/Kmodifiable | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/kconfigtest.py b/kconfigtest.py index 07c6c3f..9db404e 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -95,7 +95,8 @@ def run_selftests(): verify(c[s].is_modifiable(), "{0} should be modifiable".format(c[s].get_name())) for s in ("NOT_VISIBLE", "SELECTED_TO_Y", "BOOL_SELECTED_TO_M", - "NOT_VISIBLE_STRING", "NOT_VISIBLE_INT", "NOT_VISIBLE_HEX"): + "M_VISIBLE_TRISTATE_SELECTED_TO_M", "NOT_VISIBLE_STRING", + "NOT_VISIBLE_INT", "NOT_VISIBLE_HEX"): verify(not c[s].is_modifiable(), "{0} should not be modifiable".format(c[s].get_name())) diff --git a/tests/Kmodifiable b/tests/Kmodifiable index d4d695c..1f9dcc9 100644 --- a/tests/Kmodifiable +++ b/tests/Kmodifiable @@ -17,11 +17,16 @@ config SELECTED_TO_Y config M_SELECTOR def_tristate m select TRISTATE_SELECTED_TO_M + select M_VISIBLE_TRISTATE_SELECTED_TO_M select BOOL_SELECTED_TO_M config TRISTATE_SELECTED_TO_M tristate "tristate selected to m" +config M_VISIBLE_TRISTATE_SELECTED_TO_M + tristate "m-visible tristate selected to m" + depends on m + # The "m" will get promoted to a "y", so this should still not be modifiable config BOOL_SELECTED_TO_M bool "bool selected to m" -- cgit v1.2.3