From 2c3ad37f240fe65f05c82a77c3a74b6fa3a4fd4c Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 12 Aug 2020 15:54:43 +0530 Subject: Test for spurious warning from get_target_filename Fixed by #7494 without a test, so here's a test. Extracted from https://github.com/mesonbuild/meson/pull/7539 --- run_unittests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index 49e2206..7044d5e 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5029,6 +5029,14 @@ recommended as it is not supported on some platforms''') self.build() self.run_tests() + def test_multi_output_custom_target_no_warning(self): + testdir = os.path.join(self.common_test_dir, '235 custom_target source') + + out = self.init(testdir) + self.assertNotRegex(out, 'WARNING:.*Using the first one.') + self.build() + self.run_tests() + class FailureTests(BasePlatformTests): ''' Tests that test failure conditions. Build files here should be dynamically -- cgit v1.1