summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-03 05:19:54 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-03 05:27:17 +0100
commitb74cd303f763fbdc1307830b6333354d65733ef8 (patch)
tree53618a9863dfc88dfdd944e3a3ff94a2ede95b1b /testsuite.py
parentb59b618a0ce85632742ff92a5be2bab690a75e42 (diff)
Test .assignable for imply, find C menuconfig bug
A tristate implied to y can't be set to m. Other than that, imply doesn't affect assignable values. Fix some copy-paste type errors too. In the C menuconfig, a tristate with m visibility implied to y gets stuck if you change it with space. Look into that later. Test case: config MODULES def_bool y option modules config Y_IMPLIER def_tristate y imply Y_IMP_M_VIS_TRI config Y_IMP_M_VIS_TRI tristate "y-imp m-vis tri" if m
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py
index 11d3ef6..17c7f9e 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -918,6 +918,22 @@ g
verify_assignable("M_SEL_M_VIS_TRI", (1 ,))
verify_assignable("M_SEL_N_VIS_TRI", ( ))
+ # Symbols implied to y
+ verify_assignable("Y_IMP_Y_VIS_BOOL", (0, 2))
+ verify_assignable("Y_IMP_M_VIS_BOOL", (0, 2)) # Visibility promoted
+ verify_assignable("Y_IMP_N_VIS_BOOL", ( ))
+ verify_assignable("Y_IMP_Y_VIS_TRI", (0, 2)) # m removed by imply
+ verify_assignable("Y_IMP_M_VIS_TRI", (0, 2)) # m promoted to y by imply
+ verify_assignable("Y_IMP_N_VIS_TRI", ( ))
+
+ # Symbols implied to m (never affects assignable values)
+ verify_assignable("M_IMP_Y_VIS_BOOL", (0, 2))
+ verify_assignable("M_IMP_M_VIS_BOOL", (0, 2)) # Visibility promoted
+ verify_assignable("M_IMP_N_VIS_BOOL", ( ))
+ verify_assignable("M_IMP_Y_VIS_TRI", (0, 1, 2)) # m removed by imply
+ verify_assignable("M_IMP_M_VIS_TRI", (0, 1 )) # m promoted to y by imply
+ verify_assignable("M_IMP_N_VIS_TRI", ( ))
+
print("Testing object relations")