From cd96604f4fbbb88347e043919714a0428e159bc8 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 14 Jun 2018 19:17:40 +0200 Subject: Test property ordering on nested multi.def. choices This case wasn't covered. --- tests/Kdepcopy | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- testsuite.py | 3 +++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/tests/Kdepcopy b/tests/Kdepcopy index 689bcc3..6abe898 100644 --- a/tests/Kdepcopy +++ b/tests/Kdepcopy @@ -70,7 +70,7 @@ config MULTIDEF imply JJ -# Same test with choices involved +# Same test with choice symbols involved config MULTIDEF_CHOICE bool @@ -123,3 +123,51 @@ config MULTIDEF_RANGE config MULTIDEF_RANGE int range F _ + + +# Same test for a choice + +choice MULTICHOICE + bool "choice" + default A + +config A + bool "A" + +config B + bool "B" + +config C + bool "C" + +config D + bool "C" + +config E + bool "C" + +endchoice + +if FOO + +choice MULTICHOICE + default B +endchoice + +menu "menu" + +choice MULTICHOICE + default C +endchoice + +endmenu + +choice MULTICHOICE + default D +endchoice + +endif + +choice MULTICHOICE + default E +endchoice diff --git a/testsuite.py b/testsuite.py index 6d27040..b02c51a 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1974,6 +1974,9 @@ g verify_props("range", c.syms["MULTIDEF_RANGE"].ranges, "A B C D E F") + verify_props("default", c.choices[1].defaults, + "A B C D E") + print("\nAll selftests passed\n" if all_passed else "\nSome selftests failed\n") -- cgit v1.2.3