summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-08-26 10:09:17 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-09-15 23:22:00 +0300
commita2111ccd2e9810ec146a8f3050983801db844a95 (patch)
treed570c0d6d160342a0092f959ac1c3ebcb9ee9ac3 /unittests
parent078b8d17d4b200aa258f3b68ab33c81450486553 (diff)
downloadmeson-a2111ccd2e9810ec146a8f3050983801db844a95.tar.gz
options: put back in place 1.7 ordering of opt=value vs subp:opt=value
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'unittests')
-rw-r--r--unittests/machinefiletests.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/unittests/machinefiletests.py b/unittests/machinefiletests.py
index 7f88a54bf..15c0e5728 100644
--- a/unittests/machinefiletests.py
+++ b/unittests/machinefiletests.py
@@ -563,18 +563,11 @@ class NativeFileTests(BasePlatformTests):
check = cm.exception.stdout
self.assertIn(check, 'Parent should override default_library')
- def test_builtin_options_machinefile_global_overrides_subproject(self):
- # The buildfile says subproject(... default_library: static), ensure that's overridden
+ def test_builtin_options_machinefile_global_loses_over_subproject(self):
+ # The buildfile says subproject(... default_library: static), ensure that it overrides the machinefile
testcase = os.path.join(self.common_test_dir, '223 persubproject options')
config = self.helper_create_native_file({'built-in options': {'default_library': 'both'}})
-
- with self.assertRaises((RuntimeError, subprocess.CalledProcessError)) as cm:
- self.init(testcase, extra_args=['--native-file', config])
- if isinstance(cm, RuntimeError):
- check = str(cm.exception)
- else:
- check = cm.exception.stdout
- self.assertIn(check, 'Parent should override default_library')
+ self.init(testcase, extra_args=['--native-file', config])
def test_builtin_options_compiler_properties(self):
# the properties section can have lang_args, and those need to be