From 37663da83ee578da2383bdd06402e91bdec97094 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 25 Aug 2022 09:11:27 -0700 Subject: 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. --- test cases/warning/8 target with no sources/meson.build | 3 +++ test cases/warning/8 target with no sources/test.json | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 test cases/warning/8 target with no sources/meson.build create mode 100644 test cases/warning/8 target with no sources/test.json 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 000000000..2a8ee110b --- /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 000000000..30e5b05f1 --- /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" + } + ] +} -- cgit v1.2.3