summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-26 10:21:38 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-06-18 21:33:19 +0300
commit7c3354a7f41036e828d5a83f274952bf54811906 (patch)
treea98ae517280e505e22b831bf724141af4f68771e
parentdc2d141b21179e9e2cedff175d247bfa6f9d776f (diff)
downloadmeson-7c3354a7f41036e828d5a83f274952bf54811906.tar.gz
optiontests: use a real system option
Once unknown options will go through accept_as_pending_option, only system options that really exist in Meson will be accepted. Adjust the unit tests. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--unittests/optiontests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/optiontests.py b/unittests/optiontests.py
index ee84f9582..25cebba49 100644
--- a/unittests/optiontests.py
+++ b/unittests/optiontests.py
@@ -55,9 +55,9 @@ class OptionTests(unittest.TestCase):
"""Test that subproject system options get their default value from the global
option (e.g. "sub:b_lto" can be initialized from "b_lto")."""
optstore = OptionStore(False)
- name = 'someoption'
- default_value = 'somevalue'
- new_value = 'new_value'
+ name = 'b_lto'
+ default_value = 'false'
+ new_value = 'true'
k = OptionKey(name)
subk = k.evolve(subproject='sub')
optstore.initialize_from_top_level_project_call({}, {}, {OptionKey(name): new_value})