summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-26 00:09:26 +0100
committerw0rp <devw0rp@gmail.com>2017-10-26 00:09:26 +0100
commit2f5b94e07d3a9a2fbd7ebf26dc15cbe158eb738f (patch)
treeca75785f78fb14e030cdff10f4f28cbb2c3f46f8 /test
parentda365134b537b00966ba6de1b6184e9fd76e4733 (diff)
downloadale-2f5b94e07d3a9a2fbd7ebf26dc15cbe158eb738f.zip
Remove redundant code for the GCC handler, and fix bugs with errors for - not being parsed
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_gcc_handler.vader23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/handler/test_gcc_handler.vader b/test/handler/test_gcc_handler.vader
index 321dbc6e..9324273e 100644
--- a/test/handler/test_gcc_handler.vader
+++ b/test/handler/test_gcc_handler.vader
@@ -1,3 +1,12 @@
+Execute(The GCC handler should ignore other lines of output):
+ AssertEqual
+ \ [],
+ \ ale#handlers#gcc#HandleGCCFormat(347, [
+ \ 'foo',
+ \ 'bar',
+ \ 'baz',
+ \ ])
+
Execute(GCC errors from included files should be parsed correctly):
AssertEqual
\ [
@@ -136,3 +145,17 @@ Execute(The GCC handler should handle notes with no previous message):
\ '<stdin>:1:1: note: x',
\ '<stdin>:1:1: note: x',
\ ])
+
+Execute(The GCC handler should interpret - as being the current file):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 6,
+ \ 'col': 12,
+ \ 'type': 'E',
+ \ 'text': 'Some error',
+ \ },
+ \ ],
+ \ ale#handlers#gcc#HandleGCCFormat(347, [
+ \ '-:6:12: error: Some error',
+ \ ])