diff options
| author | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-18 01:42:57 +0200 |
|---|---|---|
| committer | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-21 09:15:13 +0200 |
| commit | d5ed8f61a5cd7a5d384ccd59abc219154a00d42c (patch) | |
| tree | a1760fcec149f9c06e27ca98f86e028a5c736f4a /test cases/failing | |
| parent | 377adfb6fbf526c56b595ef09840d5b59168162a (diff) | |
| download | meson-d5ed8f61a5cd7a5d384ccd59abc219154a00d42c.tar.gz | |
interpreter: Move argument checks from add_*_arguments to compiler.get_supported_arguments
Diffstat (limited to 'test cases/failing')
4 files changed, 11 insertions, 10 deletions
diff --git a/test cases/failing/115 compiler argument checking/meson.build b/test cases/failing/115 compiler argument checking/meson.build new file mode 100644 index 000000000..bb1f44768 --- /dev/null +++ b/test cases/failing/115 compiler argument checking/meson.build @@ -0,0 +1,4 @@ +project('compiler argument checking test', 'c') + +cc = meson.get_compiler('c') +add_project_arguments(cc.get_supported_arguments('-meson-goober-arg-for-testing', checked : 'require'), language : 'c') diff --git a/test cases/failing/115 compiler argument checking/test.json b/test cases/failing/115 compiler argument checking/test.json new file mode 100644 index 000000000..93f9476f5 --- /dev/null +++ b/test cases/failing/115 compiler argument checking/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/115 compiler argument checking/meson.build:4:0: ERROR: Compiler for C does not support \"-meson-goober-arg-for-testing\"" + } + ] +} diff --git a/test cases/failing/115 required project arguments/meson.build b/test cases/failing/115 required project arguments/meson.build deleted file mode 100644 index a871cdf91..000000000 --- a/test cases/failing/115 required project arguments/meson.build +++ /dev/null @@ -1,3 +0,0 @@ -project('add_project_arguments test', 'c') - -add_project_arguments('-meson-goober-arg-for-testing', language : 'c', required : true) diff --git a/test cases/failing/115 required project arguments/test.json b/test cases/failing/115 required project arguments/test.json deleted file mode 100644 index e7e0c60cf..000000000 --- a/test cases/failing/115 required project arguments/test.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "stdout": [ - { - "line": "test cases/failing/115 required project arguments/meson.build:3:0: ERROR: C compiler does not support \"-meson-goober-arg-for-testing\"" - } - ] -} |
