diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-10-05 20:47:17 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-10-14 19:10:22 +0300 |
| commit | a16bea59386b8f10442333f55c8d511ca4b724d6 (patch) | |
| tree | 28535ecacfaad37c77cde50aa8a629d65b2bba2a /test cases | |
| parent | d952812b1bddd2e4a7c0dd60da5ac17757182cee (diff) | |
| download | meson-a16bea59386b8f10442333f55c8d511ca4b724d6.tar.gz | |
More variable introspection.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/17 if/meson.build | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test cases/common/17 if/meson.build b/test cases/common/17 if/meson.build index b77f93a24..2103d20bb 100644 --- a/test cases/common/17 if/meson.build +++ b/test cases/common/17 if/meson.build @@ -12,3 +12,19 @@ if var2 endif test('iftest', exe) + +if not is_variable('var1') + error('Is_variable fail.') +endif + +if is_variable('nonexisting') + error('Is_variable fail 2.') +endif + +if not get_variable('var1', false) + error('Get_variable fail.') +endif + +if get_variable('nonexisting', false) + error('Get_variable fail.') +endif |
