aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index a82e476..1989e93 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -5864,6 +5864,11 @@ class FailureTests(BasePlatformTests):
"meson.override_dependency('zlib', declare_dependency())",
"""Tried to override dependency 'zlib' which has already been resolved or overridden""")
+ def test_error_func(self):
+ self.assertMesonRaises("error('a', 'b', ['c', ['d', {'e': 'f'}]], 'g')",
+ "Problem encountered: a b \['c', \['d', {'e' : 'f'}\]\] g")
+
+
@unittest.skipUnless(is_windows() or is_cygwin(), "requires Windows (or Windows via Cygwin)")
class WindowsTests(BasePlatformTests):
'''