aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-12-30 18:34:08 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2017-12-30 20:08:35 +0000
commitdd1de073f4c9e643090b1cfdcbfb6b25bbd9dc49 (patch)
tree88b040afc593f7d1913e275eac86618d74fef501 /run_unittests.py
parent3c75ae9ced4c45dded69e8d56478a848a5abfedb (diff)
downloadmeson-dd1de073f4c9e643090b1cfdcbfb6b25bbd9dc49.zip
meson-dd1de073f4c9e643090b1cfdcbfb6b25bbd9dc49.tar.gz
meson-dd1de073f4c9e643090b1cfdcbfb6b25bbd9dc49.tar.bz2
Add a test case for location in duplicate kwarg warning
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index cf229da..036ddd2 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1707,6 +1707,12 @@ int main(int argc, char **argv) {
self.init(workdir)
self.build()
+ def test_warning_location(self):
+ tdir = os.path.join(self.unit_test_dir, '20 warning location')
+ out = self.init(tdir)
+ self.assertRegex(out, r'WARNING: Keyword argument "link_with" defined multiple times in file meson.build, line 4')
+ self.assertRegex(out, r'WARNING: Keyword argument "link_with" defined multiple times in file sub' + re.escape(os.path.sep) + r'meson.build, line 3')
+
class FailureTests(BasePlatformTests):
'''