summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfigtest.py3
-rw-r--r--tests/Kmodifiable5
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"