diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-14 10:07:15 -0700 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-10-05 08:59:45 -0400 |
commit | 4b1c1d83c88853a6be99b53e4d27c414b7b36137 (patch) | |
tree | 019ab6975511f521db01a6046aa091fae5596eca /run_unittests.py | |
parent | 30a102d9a3d4594bb757b28e5b6796e327393eef (diff) | |
download | meson-4b1c1d83c88853a6be99b53e4d27c414b7b36137.zip meson-4b1c1d83c88853a6be99b53e4d27c414b7b36137.tar.gz meson-4b1c1d83c88853a6be99b53e4d27c414b7b36137.tar.bz2 |
machinefiles: Allow keys to be stored case insensitive
This is required to make the various keys in the [user options] section
work the same as they do in the meson_options.txt file, where we don't
have any rules about case sensitivity.
There is some risk here. Someone may be relying on this lower by default
behavior, and this could break their machine files.
Fixes #7731
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 3275a10..1fd436d 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -8179,7 +8179,9 @@ class NativeFileTests(BasePlatformTests): testcase = os.path.join(self.common_test_dir, '43 options') for opt, value in [('testoption', 'some other val'), ('other_one', True), ('combo_opt', 'one'), ('array_opt', ['two']), - ('integer_opt', 0)]: + ('integer_opt', 0), + ('CaseSenSiTivE', 'SOME other Value'), + ('CASESENSITIVE', 'some other Value')]: config = self.helper_create_native_file({'project options': {opt: value}}) with self.assertRaises(subprocess.CalledProcessError) as cm: self.init(testcase, extra_args=['--native-file', config]) |