diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2025-02-18 13:37:04 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-02-27 13:30:06 -0800 |
| commit | 25f7e33a22967af8c8f91c46029a8fd4d5d78e78 (patch) | |
| tree | 049c1d76309e327f4d8e5ebd4c9fb75c3d6874f9 /unittests/optiontests.py | |
| parent | 8ebc8c1878852f914172b99135d2960429402204 (diff) | |
| download | meson-25f7e33a22967af8c8f91c46029a8fd4d5d78e78.tar.gz | |
Maintain bw compatibility for requesting bad options.
Closes: #14255.
Diffstat (limited to 'unittests/optiontests.py')
| -rw-r--r-- | unittests/optiontests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unittests/optiontests.py b/unittests/optiontests.py index 94d52ae2e..845eba0b9 100644 --- a/unittests/optiontests.py +++ b/unittests/optiontests.py @@ -198,3 +198,8 @@ class OptionTests(unittest.TestCase): optstore.set_subproject_options(subproject, [f'cpp_std={unused_value}'], [f'cpp_std={unused_value}']) self.assertEqual(optstore.get_value_for(name), default_value) self.assertEqual(optstore.get_value_for(name, subproject), override_value) + + def test_b_default(self): + optstore = OptionStore(False) + _, value = optstore.get_default_for_b_option('b_vscrt') + self.assertEqual(value, 'from_buildtype') |
