diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-08-25 09:11:27 -0700 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-09-09 19:13:46 -0400 |
commit | 37663da83ee578da2383bdd06402e91bdec97094 (patch) | |
tree | 5e2a9491d79af3214c7d09987937c610a13831b7 /test cases/warning | |
parent | 91206aaeb07c6cc8a7a93b23c968773c5b3a76e2 (diff) | |
download | meson-37663da83ee578da2383bdd06402e91bdec97094.zip meson-37663da83ee578da2383bdd06402e91bdec97094.tar.gz meson-37663da83ee578da2383bdd06402e91bdec97094.tar.bz2 |
tests: Add a test for a target with no sources
Since this was broken for a long time, we should have a test for it.
Diffstat (limited to 'test cases/warning')
-rw-r--r-- | test cases/warning/8 target with no sources/meson.build | 3 | ||||
-rw-r--r-- | test cases/warning/8 target with no sources/test.json | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test cases/warning/8 target with no sources/meson.build b/test cases/warning/8 target with no sources/meson.build new file mode 100644 index 0000000..2a8ee11 --- /dev/null +++ b/test cases/warning/8 target with no sources/meson.build @@ -0,0 +1,3 @@ +project('no sources', 'c') + +static_library('no sources') diff --git a/test cases/warning/8 target with no sources/test.json b/test cases/warning/8 target with no sources/test.json new file mode 100644 index 0000000..30e5b05 --- /dev/null +++ b/test cases/warning/8 target with no sources/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "WARNING: Build target no sources has no sources. This was never supposed to be allowed but did because of a bug, support will be removed in a future release of Meson" + } + ] +} |