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.
pull/10788/head
Dylan Baker 3 years ago committed by Xavier Claessens
parent 91206aaeb0
commit 37663da83e
  1. 3
      test cases/warning/8 target with no sources/meson.build
  2. 7
      test cases/warning/8 target with no sources/test.json

@ -0,0 +1,3 @@
project('no sources', 'c')
static_library('no sources')

@ -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"
}
]
}
Loading…
Cancel
Save