diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-01-09 15:36:30 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-30 06:48:22 +1100 |
commit | 6a1a56ab57ed29d31c9550d9725e60e2fb67ac6c (patch) | |
tree | 1f60320fc3fb39d05c2a5872b928984b23f97d58 /run_unittests.py | |
parent | 26b16e74a904d882d2505ee8bab42a3fafd17ac2 (diff) | |
download | meson-6a1a56ab57ed29d31c9550d9725e60e2fb67ac6c.zip meson-6a1a56ab57ed29d31c9550d9725e60e2fb67ac6c.tar.gz meson-6a1a56ab57ed29d31c9550d9725e60e2fb67ac6c.tar.bz2 |
Report warning/error locations in a format IDEs may already know how to parse
Examples:
meson.build:2:0: ERROR: Dependency is both required and not-found
meson.build:4: WARNING: Keyword argument "link_with" defined multiple times.
These are already matched by the default compilation-error-regexp-alist in
emacs.
Also:
Don't start 'red' markup until after the \n before an error
Unabsorb full-stop at end of warning with location from mlog.warning()
Update warning_location test
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/run_unittests.py b/run_unittests.py index 7abbe6c..103847a 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1713,13 +1713,13 @@ int main(int argc, char **argv) { tdir = os.path.join(self.unit_test_dir, '21 warning location') out = self.init(tdir) 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", - r'WARNING: Passed invalid keyword argument "invalid" in file meson.build, line 1' + r'meson.build:4: WARNING: Keyword argument "link_with" defined multiple times.', + r'sub' + os.path.sep + r'meson.build:3: WARNING: Keyword argument "link_with" defined multiple times.', + r'meson.build:6: WARNING: a warning of some sort', + r'sub' + os.path.sep + r'meson.build:4: WARNING: subdir warning', + r'meson.build:7: WARNING: Module unstable-simd has no backwards or forwards compatibility and might not exist in future releases.', + r"meson.build:10: WARNING: The variable(s) 'MISSING' in the input file conf.in are not present in the given configuration data.", + r'meson.build:1: WARNING: Passed invalid keyword argument "invalid".', ]: self.assertRegex(out, re.escape(expected)) |