diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-26 10:09:17 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-09-15 23:22:00 +0300 |
| commit | a2111ccd2e9810ec146a8f3050983801db844a95 (patch) | |
| tree | d570c0d6d160342a0092f959ac1c3ebcb9ee9ac3 /unittests | |
| parent | 078b8d17d4b200aa258f3b68ab33c81450486553 (diff) | |
| download | meson-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.py | 13 |
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 |
