aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
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()