diff options
| author | Hristo Venev <hristo@venev.name> | 2017-09-11 21:05:26 +0100 |
|---|---|---|
| committer | Hristo Venev <hristo@venev.name> | 2017-09-15 18:24:26 +0100 |
| commit | f2fc32069bc6698ecc65accc455a296b59eb55c7 (patch) | |
| tree | df19aa039033b04b88ae0b0d96d1ca7089a3e457 /test cases | |
| parent | e1fc17ef2a532d539678b9a9378bca59eda38a91 (diff) | |
| download | meson-f2fc32069bc6698ecc65accc455a296b59eb55c7.tar.gz | |
Add test for get_option(b_xxx) on reconfigure.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/47 options/meson.build | 1 | ||||
| -rw-r--r-- | test cases/unit/13 reconfigure/meson.build | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test cases/common/47 options/meson.build b/test cases/common/47 options/meson.build index 4058748f0..2a764f036 100644 --- a/test cases/common/47 options/meson.build +++ b/test cases/common/47 options/meson.build @@ -12,6 +12,7 @@ if get_option('combo_opt') != 'combo' error('Incorrect value to combo option.') endif +# If the default changes, update test cases/unit/13 reconfigure if get_option('b_lto') != false error('Incorrect value in base option.') endif diff --git a/test cases/unit/13 reconfigure/meson.build b/test cases/unit/13 reconfigure/meson.build new file mode 100644 index 000000000..102180e54 --- /dev/null +++ b/test cases/unit/13 reconfigure/meson.build @@ -0,0 +1,5 @@ +project('reconfigure test', ['c']) + +if get_option('b_lto') != true + error('b_lto not set') +endif |
