summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-11 21:05:41 +0100
committerw0rp <devw0rp@gmail.com>2017-04-11 21:05:41 +0100
commit65fe914fb88fa99d0bb1059a08bc40de5f8ac243 (patch)
tree3ebc4bb09a9cfd92e3b769bfda2e1f9994fe68d2 /test
parentb06b832447253404180ce6a97927755e4ae68c22 (diff)
downloadale-65fe914fb88fa99d0bb1059a08bc40de5f8ac243.zip
#392 Handle clang header errors too
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_clang_handler.vader23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/handler/test_clang_handler.vader b/test/handler/test_clang_handler.vader
new file mode 100644
index 00000000..d28b9eb8
--- /dev/null
+++ b/test/handler/test_clang_handler.vader
@@ -0,0 +1,23 @@
+Execute(clang errors from included files should be parsed correctly):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 3,
+ \ 'type': 'E',
+ \ 'text': 'Problems were found in the header (See :ALEDetail)',
+ \ 'detail': join([
+ \ './b.h:1:1: error: expected identifier or ''(''',
+ \ '{{{',
+ \ '^',
+ \ '1 error generated.',
+ \ ], "\n"),
+ \ },
+ \ ],
+ \ ale#handlers#gcc#HandleGCCFormat(347, [
+ \ 'In file included from test.c:3:',
+ \ 'In file included from ./a.h:1:',
+ \ './b.h:1:1: error: expected identifier or ''(''',
+ \ '{{{',
+ \ '^',
+ \ '1 error generated.',
+ \ ])