summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-07 06:07:19 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-07 06:36:42 +0200
commit5e54e2cd43c5f3c530706291d860ba1bf817986c (patch)
treefe36d3e04469c1906f5b389015ac16695223dbdb /testsuite.py
parent9947a7c70b3a3d1a2b0849769a65892b866d68a2 (diff)
Unset user values when loading a zero-byte .config.
Minor bug due to an early return from load_config(). Piggyback a refactoring of the code. Reading the header is unlikely to be performance-sensitive. Add a testcase too.
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py
index e225cbb..3407e0a 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -1333,6 +1333,10 @@ def run_selftests():
verify_value("BOOL", "n")
verify_value("STRING", "foo bar")
+ # Loading a completely empty .config should also reset values
+ c.load_config("Kconfiglib/tests/empty")
+ verify_value("STRING", "")
+
#
# get_config()
#