summaryrefslogtreecommitdiff
path: root/test/handler/test_gcc_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-29 20:00:29 +0100
committerw0rp <devw0rp@gmail.com>2017-04-29 20:00:42 +0100
commit2c7d14809d5e143af89317461daadd12408bfbd5 (patch)
tree5731835343d05eb8ddd539c4f41aae1ac21a5f0b /test/handler/test_gcc_handler.vader
parentdfb10f1db2d2aaacf6c1bcc6fe69223398a46420 (diff)
downloadale-2c7d14809d5e143af89317461daadd12408bfbd5.zip
Set GCC flags appropriately for older versions
Diffstat (limited to 'test/handler/test_gcc_handler.vader')
-rw-r--r--test/handler/test_gcc_handler.vader11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/handler/test_gcc_handler.vader b/test/handler/test_gcc_handler.vader
index 3d5a24d4..990df2c5 100644
--- a/test/handler/test_gcc_handler.vader
+++ b/test/handler/test_gcc_handler.vader
@@ -66,3 +66,14 @@ Execute(GCC errors from included files should be parsed correctly):
\ ' other_bad_type y;',
\ ' ^',
\ ])
+
+Execute(GCC versions should be parsed correctly):
+ AssertEqual [4, 9, 1], ale#handlers#gcc#ParseGCCVersion([
+ \ 'g++ (GCC) 4.9.1 20140922 (Red Hat 4.9.1-10)',
+ \])
+ AssertEqual [4, 8, 4], ale#handlers#gcc#ParseGCCVersion([
+ \ 'gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4',
+ \ 'Copyright (C) 2013 Free Software Foundation, Inc.',
+ \ 'This is free software; see the source for copying conditions. There is NO',
+ \ 'warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.',
+ \])