aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-12-31 17:16:28 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-01-01 13:21:00 +0000
commitf85fde743a292e24c9aed81c23f6af466054aee3 (patch)
tree1116d9757f1668ddf2894f6db429a81a65c38994 /run_unittests.py
parent2ed875e1b49d06d677d299534f2f8290bfbd3b35 (diff)
downloadmeson-f85fde743a292e24c9aed81c23f6af466054aee3.zip
meson-f85fde743a292e24c9aed81c23f6af466054aee3.tar.gz
meson-f85fde743a292e24c9aed81c23f6af466054aee3.tar.bz2
Wire up locations in a couple more warnings
These are the remaining warnings in the parser, where we have the location to hand.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/run_unittests.py b/run_unittests.py
index dc2429a..11f16a2 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1710,10 +1710,15 @@ int main(int argc, char **argv) {
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')
- self.assertRegex(out, r'WARNING: a warning of some sort in file meson.build, line 6')
- self.assertRegex(out, r'WARNING: subdir warning in file sub' + re.escape(os.path.sep) + r'meson.build, line 4')
+ for expected in [
+ r'WARNING: Keyword argument "link_with" defined multiple times in file meson.build, line 4',
+ r'WARNING: Keyword argument "link_with" defined multiple times in file sub' + os.path.sep + r'meson.build, line 3',
+ r'WARNING: a warning of some sort in file meson.build, line 6',
+ r'WARNING: subdir warning in file sub' + os.path.sep + r'meson.build, line 4',
+ r'WARNING: Module unstable-simd has no backwards or forwards compatibility and might not exist in future releases in file meson.build, line 7',
+ r"WARNING: The variable(s) 'MISSING' in the input file conf.in are not present in the given configuration data in file meson.build, line 10",
+ ]:
+ self.assertRegex(out, re.escape(expected))
def test_templates(self):
ninja = detect_ninja()