diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-15 13:44:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-15 13:44:03 +0100 |
| commit | 401cd3c06af8f2812671aef157894d841c28726d (patch) | |
| tree | 5580ef57db28ef4ad508d19e836d17755f21b95b /testsuite.py | |
| parent | 0ae6a04dc3e1c799ae7bd2aa6df63e30309fef36 (diff) | |
| parent | 94c63de77c7a3422347e59e168b05174d0b9e84d (diff) | |
Merge pull request #36 from SebastianBoe/support_disabling_redundant_warnings
Support disabling warnings for redundant assignments
Diffstat (limited to 'testsuite.py')
| -rw-r--r-- | testsuite.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite.py b/testsuite.py index 62a06ab..2f00e2f 100644 --- a/testsuite.py +++ b/testsuite.py @@ -676,7 +676,7 @@ choice print("Testing Kconfig.__repr__()") verify_repr(c, """ -<configuration with 15 symbols, main menu prompt "Linux Kernel Configuration", srctree not set, config symbol prefix "CONFIG_", warnings disabled, undef. symbol assignment warnings disabled> +<configuration with 15 symbols, main menu prompt "Linux Kernel Configuration", srctree not set, config symbol prefix "CONFIG_", warnings disabled, undef. symbol assignment warnings disabled, redundant symbol assignment warnings enabled> """) os.environ["srctree"] = "srctree value" @@ -684,10 +684,11 @@ choice c = Kconfig("Kconfiglib/tests/Krepr", warn=False) c.enable_warnings() + c.disable_redun_warnings() c.enable_undef_warnings() verify_repr(c, """ -<configuration with 15 symbols, main menu prompt "Linux Kernel Configuration", srctree "srctree value", config symbol prefix "CONFIG_ value", warnings enabled, undef. symbol assignment warnings enabled> +<configuration with 15 symbols, main menu prompt "Linux Kernel Configuration", srctree "srctree value", config symbol prefix "CONFIG_ value", warnings enabled, undef. symbol assignment warnings enabled, redundant symbol assignment warnings disabled> """) os.environ.pop("srctree", None) @@ -1816,6 +1817,8 @@ def test_sanity(conf, arch): conf.modules conf.defconfig_list conf.defconfig_filename + conf.enable_redun_warnings() + conf.disable_redun_warnings() conf.enable_undef_warnings() conf.disable_undef_warnings() conf.enable_warnings() |
