summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py
index 8306c05..a876f0e 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -779,6 +779,17 @@ g
verify_locations([c.syms["COMMENT_HOOK"].nodes[0].next],
"tests/Klocation_included:15")
+ # Test recursive 'source' detection
+
+ got_syntax_exception = False
+ try:
+ Kconfig("Kconfiglib/tests/Krecursive1")
+ except KconfigSyntaxError:
+ got_syntax_exception = True
+
+ verify(got_syntax_exception,
+ "recursive 'source' did not raise KconfigSyntaxError")
+
print("Testing visibility")