From 80392225a61a5baa28ef1f45bfc19b4623d2d188 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 6 Jul 2018 23:21:04 +0530 Subject: Raise a MesonException when substituting an invalid value Avoids throwing a traceback. Also, warn when setting such a value. --- run_unittests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index 8dcf308..b3bc271 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2300,6 +2300,7 @@ recommended as it is not supported on some platforms''') self.assertEqual(f.read().strip(), b'/* #undef FOO_BAR */') with open(os.path.join(self.builddir, 'nosubst-nocopy2.txt'), 'rb') as f: self.assertEqual(f.read().strip(), b'') + self.assertRegex(out, r"DEPRECATION:.*\['array'\] is invalid.*dict") class FailureTests(BasePlatformTests): -- cgit v1.1