aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-02-25 09:59:13 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2021-02-25 22:58:45 +0200
commitcef5cab23c6fb53e4ddf0d2460cb2258ef64f6d5 (patch)
tree840f2f5c0494996fd1ccfad2ff70df9532b053d0 /run_unittests.py
parent4e5efd3897c5bd03fbcd32fcf43c82879ca8caf4 (diff)
downloadmeson-cef5cab23c6fb53e4ddf0d2460cb2258ef64f6d5.zip
meson-cef5cab23c6fb53e4ddf0d2460cb2258ef64f6d5.tar.gz
meson-cef5cab23c6fb53e4ddf0d2460cb2258ef64f6d5.tar.bz2
Support multiple args in error()
Seems it got forgotten when that was added to warnings() and message(). Fixes: #8414.
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):
'''