diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-17 10:10:25 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-17 10:10:25 +0100 |
commit | 164c4efb323f77e27942a824bd84fae91eb16db4 (patch) | |
tree | 777fd50029eba9e2414e857dc14c61da7a255b75 /test | |
parent | 5790df12722a31e913750fad955f2a4f0ed76269 (diff) | |
download | ale-164c4efb323f77e27942a824bd84fae91eb16db4.zip |
Fix #556 Remove duplicate error messages from clang++
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_gcc_handler.vader | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/handler/test_gcc_handler.vader b/test/handler/test_gcc_handler.vader index 72b7c541..2934bbee 100644 --- a/test/handler/test_gcc_handler.vader +++ b/test/handler/test_gcc_handler.vader @@ -94,3 +94,29 @@ Execute(The GCC handler shouldn't complain about #pragma once for headers): \ ale#handlers#gcc#HandleGCCFormat(347, [ \ '<stdin>:1:1: warning: #pragma once in main file [enabled by default]', \ ]) + +Execute(The GCC handler should eliminate duplicated clang errors): + AssertEqual + \ [ + \ {'lnum': 2, 'col': 10, 'type': 'E', 'text': '''a.h'' file not found'}, + \ {'lnum': 4, 'col': 10, 'type': 'E', 'text': 'empty filename'}, + \ ], + \ ale#handlers#gcc#HandleGCCFormat(347, [ + \ '<stdin>:2:10: fatal error: ''a.h'' file not found', + \ '#include "a.h"', + \ ' ^~~~~', + \ '', + \ '<stdin>:2:10: fatal error: ''a.h'' file not found', + \ '#include "a.h"', + \ ' ^~~~~', + \ '', + \ '<stdin>:4:10: error: empty filename', + \ '', + \ '<stdin>:4:10: error: empty filename', + \ '#include ""', + \ ' ^', + \ '', + \ '<stdin>:4:10: error: empty filename', + \ '#include ""', + \ ' ^', + \ ]) |