diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-10 14:59:14 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-10 14:59:14 +0100 |
| commit | 3ecf3d3373302338a305e1789baf84160d765871 (patch) | |
| tree | 54d5733649fc85564e93aa33e84987e8a1221caf | |
| parent | a3545bfabf158dd801e399e2e2aac1b9ad337815 (diff) | |
Add one more is_modifiable() test.
| -rw-r--r-- | kconfigtest.py | 3 | ||||
| -rw-r--r-- | tests/Kmodifiable | 5 |
2 files changed, 7 insertions, 1 deletions
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" |
