diff options
author | Henri Chain <henri.chain@enioka.com> | 2020-02-18 23:21:30 +0100 |
---|---|---|
committer | Henri Chain <henri.chain@enioka.com> | 2020-02-25 15:46:53 +0100 |
commit | d218b93a535085c85889164d45a83c3a519f9f4b (patch) | |
tree | b9c051db2691321c6ef604cd138342b0f3e39fea /autotests/kconfig_compiler/test_param_minmax.kcfg | |
parent | c8bf5e96cf2f25bb85330cf2587e2e365e6f0f71 (diff) | |
download | kconfig-d218b93a535085c85889164d45a83c3a519f9f4b.tar.gz kconfig-d218b93a535085c85889164d45a83c3a519f9f4b.tar.bz2 |
Fix code generation for entries with min/max
Summary:
- When GenerateProperties and Mutators are activated, the generated code
did not handle min/max properly
- In the case of a parameterized entry, generated code also did not
handle min/max
BUG: 418146
Test Plan: - auto tests included
Reviewers: meven, crossi, ervin, bport, tcanabrava
Reviewed By: meven, ervin
Subscribers: kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D27497
Diffstat (limited to 'autotests/kconfig_compiler/test_param_minmax.kcfg')
-rw-r--r-- | autotests/kconfig_compiler/test_param_minmax.kcfg | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test_param_minmax.kcfg b/autotests/kconfig_compiler/test_param_minmax.kcfg new file mode 100644 index 00000000..32046fd3 --- /dev/null +++ b/autotests/kconfig_compiler/test_param_minmax.kcfg @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Author: Henri Chain --> +<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 + http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > + <kcfgfile arg="true"/> + <group name="Something"> + <entry name="Foo$(myparam)" type="double" key="foo_#$(myparam)"> + <parameter name="myparam" type="Int" max="5"/> + <default>1.23</default> + <min>0.01</min> + <max>89898.23</max> + </entry> + </group> +</kcfg> + |