summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-09-04 20:44:24 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-09-04 21:14:12 +0200
commit26e1db651e18fd65fe7374b404a30e20f601969f (patch)
tree3ca8cd4fa01a2f1ab3031c226f2f40783de1e2d3 /testsuite.py
parente7233c12e91626424c9cfebeb3892c298caca980 (diff)
Allow preprocessor user functions to access the parsing location
Just requires making Kconfig.filename/linenr public. 'lineno' would be a more standard name, but be consistent with MenuNode.linenr.
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py
index 3a6a3a6..93e85d6 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -2589,6 +2589,11 @@ config PRINT_ME_TOO
verify_variable("one-or-more-three", "$(one-or-more,foo,bar,baz)",
"foo + bar,baz", True)
+ verify_variable("location-1", "Kconfiglib/tests/Kuserfunctions:13",
+ "Kconfiglib/tests/Kuserfunctions:13", False)
+ verify_variable("location-2", "Kconfiglib/tests/Kuserfunctions:14",
+ "Kconfiglib/tests/Kuserfunctions:14", False)
+
def verify_bad_argno(name):
try:
c.variables[name].expanded_value