diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2024-02-27 21:47:50 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-03-01 12:09:22 -0800 |
commit | 76f6874e4841954a63ac9fb79deec353f50648d1 (patch) | |
tree | db25d7a591629dae4d82e6fdabc0e7a0c779b03e /unittests | |
parent | 4ed6d75d962b3d43a9f7e8f5154e48d0bef01cc9 (diff) | |
download | meson-76f6874e4841954a63ac9fb79deec353f50648d1.zip meson-76f6874e4841954a63ac9fb79deec353f50648d1.tar.gz meson-76f6874e4841954a63ac9fb79deec353f50648d1.tar.bz2 |
Fix base and compiler options not reconfigurable.
Fixes #12920.
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/platformagnostictests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py index 581ecac..6884da4 100644 --- a/unittests/platformagnostictests.py +++ b/unittests/platformagnostictests.py @@ -275,3 +275,13 @@ class PlatformAgnosticTests(BasePlatformTests): self.assertIn('first statement must be a call to project()', out) # provide guidance diagnostics by finding a file whose first AST statement is project() self.assertIn(f'Did you mean to run meson from the directory: "{testdir}"?', out) + + def test_reconfigure_base_options(self): + testdir = os.path.join(self.unit_test_dir, '122 reconfigure base options') + out = self.init(testdir, extra_args=['-Db_ndebug=true']) + self.assertIn('\nMessage: b_ndebug: true\n', out) + self.assertIn('\nMessage: c_std: c89\n', out) + + out = self.init(testdir, extra_args=['--reconfigure', '-Db_ndebug=if-release', '-Dc_std=c99']) + self.assertIn('\nMessage: b_ndebug: if-release\n', out) + self.assertIn('\nMessage: c_std: c99\n', out) |