summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-13 13:42:59 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-13 13:42:59 +0100
commit6e444f548b88313609c655df14bb1c72c3e98dc8 (patch)
treea44eb5313668ebba2540fd93c4a1b4d59d99d15e
parent83f01afab164c434df9d5c4e217275040370c55e (diff)
Verify assignability of string/int/hex with m visibility.
-rw-r--r--tests/Kvisibility16
-rw-r--r--testsuite.py6
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/Kvisibility b/tests/Kvisibility
index 5521863..11e15ad 100644
--- a/tests/Kvisibility
+++ b/tests/Kvisibility
@@ -259,3 +259,19 @@ comment "double-nested m comment"
depends on y
endmenu
endif
+
+# Used to verify that string/int/hex symbols with m visibility accept a user
+# value
+
+if m
+
+config STRING_m
+ string "string"
+
+config INT_m
+ int "int"
+
+config HEX_m
+ hex "hex"
+
+endif
diff --git a/testsuite.py b/testsuite.py
index 1824ecb..1882252 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -562,6 +562,12 @@ def run_selftests():
verify_comment_visibility(comment_if_y, "y", "y")
verify_comment_visibility(comment_m_nested, "n", "m")
+ # Verify that string/int/hex symbols with m visibility accept a user value
+
+ assign_and_verify_new_value("STRING_m", "foo bar", "foo bar")
+ assign_and_verify_new_value("INT_m", "123", "123")
+ assign_and_verify_new_value("HEX_m", "0x123", "0x123")
+
#
# Object relations
#