diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-21 20:55:29 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-21 21:17:45 +0200 |
| commit | a3252f620fad970bbe8b7470401a04ee4225193e (patch) | |
| tree | 5860f52ec628dfc72ba8a4a1dea898270a991e4d /testsuite.py | |
| parent | 67e890cc9d926213fbec93afb3ee14e6c24f9a50 (diff) | |
Merge Symbol._checked and Symbol._written
These are never used at the same time, and Symbol._visited is a good
name for both.
Gets rid of an internal attribute.
Diffstat (limited to 'testsuite.py')
| -rw-r--r-- | testsuite.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/testsuite.py b/testsuite.py index 7f1ccfe..eef8389 100644 --- a/testsuite.py +++ b/testsuite.py @@ -2461,6 +2461,11 @@ def test_sanity(arch, srcarch): kconf = Kconfig() + for sym in kconf.defined_syms: + verify(sym._visited == 2, + "{} has broken dependency loop detection (_visited = {})" + .format(sym.name, sym._visited)) + kconf.modules kconf.defconfig_list kconf.defconfig_filename @@ -2512,14 +2517,10 @@ def test_sanity(arch, srcarch): sym.visibility for sym in kconf.defined_syms: - verify(sym.nodes, sym.name + " is defined but lacks menu nodes") - - verify(not (sym.orig_type not in (BOOL, TRISTATE) and sym.choice), - sym.name + " is a choice symbol but not bool/tristate") + verify(sym.nodes, sym.name + " is defined but lacks menu nodes") - verify(sym._checked == 2, - "{} has broken dependency loop detection (_checked = {})" - .format(sym.name, sym._checked)) + verify(not (sym.orig_type not in (BOOL, TRISTATE) and sym.choice), + sym.name + " is a choice symbol but not bool/tristate") for key, sym in kconf.const_syms.items(): verify(isinstance(key, str), |
