From 2f5b94e07d3a9a2fbd7ebf26dc15cbe158eb738f Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 26 Oct 2017 00:09:26 +0100 Subject: Remove redundant code for the GCC handler, and fix bugs with errors for - not being parsed --- test/handler/test_gcc_handler.vader | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/handler/test_gcc_handler.vader') 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): \ ':1:1: note: x', \ ':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', + \ ]) -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0