aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-07-06 23:21:04 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-07-07 04:33:24 -0700
commit80392225a61a5baa28ef1f45bfc19b4623d2d188 (patch)
tree8a5f4754aea7d1fa07c9df76efd5bb658ff6c962 /run_unittests.py
parent4fb00ee1d8c79184e3a77f9266e90d42ff595f41 (diff)
downloadmeson-80392225a61a5baa28ef1f45bfc19b4623d2d188.zip
meson-80392225a61a5baa28ef1f45bfc19b4623d2d188.tar.gz
meson-80392225a61a5baa28ef1f45bfc19b4623d2d188.tar.bz2
Raise a MesonException when substituting an invalid value
Avoids throwing a traceback. Also, warn when setting such a value.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py1
1 files changed, 1 insertions, 0 deletions
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):