summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-05-09 09:14:38 +0100
committerGitHub <noreply@github.com>2018-05-09 09:14:38 +0100
commit38c66d33fe8022803497c49239b06112ccbd0a83 (patch)
treede361946a2b9a4ee06c51cd79bd2bf5e9c07c494 /test
parentf7ecf3f47a22de588c241cd17d75331875097110 (diff)
parent5fe74c7dc85952a4d902ec73ae1624c6940a995c (diff)
downloadale-38c66d33fe8022803497c49239b06112ccbd0a83.zip
Merge pull request #1563 from IngoHeimbach/fix/gcc-fatal-error
Fatal GCC errors are handled as errors not warnings
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_gcc_handler.vader14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/handler/test_gcc_handler.vader b/test/handler/test_gcc_handler.vader
index 79f17899..678d3f42 100644
--- a/test/handler/test_gcc_handler.vader
+++ b/test/handler/test_gcc_handler.vader
@@ -148,3 +148,17 @@ Execute(The GCC handler should interpret - as being the current file):
\ ale#handlers#gcc#HandleGCCFormat(347, [
\ '-:6:12: error: Some error',
\ ])
+
+Execute(The GCC handler should handle fatal error messages due to missing files):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 3,
+ \ 'col': 12,
+ \ 'type': 'E',
+ \ 'text': 'foo.h: No such file or directory'
+ \ },
+ \ ],
+ \ ale#handlers#gcc#HandleGCCFormat(347, [
+ \ '<stdin>:3:12: fatal error: foo.h: No such file or directory',
+ \ ])