From 5fe74c7dc85952a4d902ec73ae1624c6940a995c Mon Sep 17 00:00:00 2001 From: Ingo Heimbach Date: Tue, 8 May 2018 11:22:09 +0200 Subject: Fatal GCC errors are handled as errors not warnings --- test/handler/test_gcc_handler.vader | 14 ++++++++++++++ 1 file changed, 14 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 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, [ + \ ':3:12: fatal error: foo.h: No such file or directory', + \ ]) -- cgit v1.2.3