mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fatal GCC errors are handled as errors not warnings
This commit is contained in:
@@ -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, [
|
||||
\ '<stdin>:3:12: fatal error: foo.h: No such file or directory',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user