summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-08-02 21:45:04 +0100
committerw0rp <devw0rp@gmail.com>2018-08-02 21:45:16 +0100
commitccbdfcd76fe74232ee507d47f7edd9d447e3656a (patch)
tree4d43a289c83d3d7b9a4caac73bbf4da873aa12d1 /test/handler
parent6b3086237ab32a4045a0ff70752714f9c16cdbfd (diff)
downloadale-ccbdfcd76fe74232ee507d47f7edd9d447e3656a.zip
Include the error in the detailed error message in the GCC handler
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_gcc_handler.vader16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/handler/test_gcc_handler.vader b/test/handler/test_gcc_handler.vader
index 43b38769..3daa9e60 100644
--- a/test/handler/test_gcc_handler.vader
+++ b/test/handler/test_gcc_handler.vader
@@ -174,6 +174,22 @@ Execute(The GCC handler should handle notes with no previous message):
\ '<stdin>:1:1: note: x',
\ ])
+Execute(The GCC handler should attach notes to previous messages):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 6,
+ \ 'col': 12,
+ \ 'type': 'E',
+ \ 'text': 'Some error',
+ \ 'detail': "Some error\n<stdin>:1:1: note: x",
+ \ },
+ \ ],
+ \ ale#handlers#gcc#HandleGCCFormatWithIncludes(347, [
+ \ '-:6:12: error: Some error',
+ \ '<stdin>:1:1: note: x',
+ \ ])
+
Execute(The GCC handler should interpret - as being the current file):
AssertEqual
\ [