From fbf31fac751c0d76d2f55a0fe649ade5bafed292 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 14 Jun 2018 12:00:44 +0200 Subject: Fix MenuNode.referenced() on Kconfig.top_node The property lists weren't created for Kconfig.top_node, making referenced() crash. Add a MenuNode constructor and create the property lists there instead of in _parse_properties(). --- testsuite.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuite.py') diff --git a/testsuite.py b/testsuite.py index c773b99..6d27040 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1017,6 +1017,8 @@ g verify_equal(tuple(sorted(item.name for item in item.referenced())), dep_names) + verify_deps(c.top_node, "y") + verify_deps(c.syms["NO_REFS"].nodes[0], "y") verify_deps(c.syms["JUST_DEPENDS_ON_REFS"].nodes[0], "A", "B") -- cgit v1.2.3