From d6482f2bf798642990bba05cec10612c06a7b36f Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 14 Dec 2012 15:40:16 +0100 Subject: Get 'visible if' coverage for symbol references. --- tests/Klocation_included | 5 +++++ testsuite.py | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/Klocation_included b/tests/Klocation_included index 8b0e8a9..1164e58 100644 --- a/tests/Klocation_included +++ b/tests/Klocation_included @@ -33,3 +33,8 @@ endchoice if !(NOT_DEFINED != A) comment "comment 2" endif + +menu "visible if menu" + visible if A + visible if NOT_DEFINED +endmenu diff --git a/testsuite.py b/testsuite.py index 9bc5136..c0a8549 100644 --- a/testsuite.py +++ b/testsuite.py @@ -404,6 +404,7 @@ def run_selftests(): ("Kconfiglib/tests/Klocation_included", 12), ("Kconfiglib/tests/Klocation_included", 13), ("Kconfiglib/tests/Klocation_included", 33), + ("Kconfiglib/tests/Klocation_included", 38), ("Kconfiglib/tests/Klocation", 45), ("Kconfiglib/tests/Klocation", 46), ("Kconfiglib/tests/Klocation", 47)) @@ -412,7 +413,8 @@ def run_selftests(): ("Kconfiglib/tests/Klocation", 7), ("Kconfiglib/tests/Klocation", 22), ("Kconfiglib/tests/Klocation_included", 12), - ("Kconfiglib/tests/Klocation_included", 33)) + ("Kconfiglib/tests/Klocation_included", 33), + ("Kconfiglib/tests/Klocation_included", 39)) # Location queries for choices @@ -452,7 +454,7 @@ def run_selftests(): menu_or_comment_loc, loc)) - menu_1, menu_2 = c.get_menus() + menu_1, menu_2 = c.get_menus()[:-1] comment_1, comment_2 = c.get_comments() verify_location(menu_1, ("Kconfiglib/tests/Klocation", 5)) -- cgit v1.2.3