summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py
index 6ffdbd1..a8c0e0d 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -1339,6 +1339,15 @@ def run_selftests():
verify_dependent("C", ["A", "B"])
verify_dependent("S", ["A", "B", "C"])
+ # Verify that the last symbol depends on the first in a long chain of
+ # dependencies. Test twice to cover dependency caching.
+
+ c = kconfiglib.Config("Kconfiglib/tests/Kchain")
+
+ for i in range(0, 2):
+ verify(c["CHAIN_23"] in c["CHAIN_1"]._get_dependent(),
+ "Dependency chain broken")
+
print
if _all_ok:
print "All selftests passed"