summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorroel0 <roel.postelmans@altran.com>2018-03-21 20:56:29 +0100
committerroel0 <roel.postelmans@altran.com>2018-03-21 20:56:29 +0100
commitcf62ef7b070c08bc6858aa88f0ff45be56b7c9b7 (patch)
treecd83d2b0346be9c18e0246481e36caae5aad028a /test
parent69237a7e57a67e37e8dcd0c3d97b4a6ffda5929a (diff)
downloadale-cf62ef7b070c08bc6858aa88f0ff45be56b7c9b7.zip
Fixed windows compatibility unit tests #1167
Diffstat (limited to 'test')
-rw-r--r--test/test_c_parse_makefile.vader11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/test_c_parse_makefile.vader b/test/test_c_parse_makefile.vader
index 0323ac82..f1988ec8 100644
--- a/test/test_c_parse_makefile.vader
+++ b/test/test_c_parse_makefile.vader
@@ -79,7 +79,9 @@ Execute(The CFlagsToList parser should be able to parse multiple cflags #2):
\ '-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include'),
\ '-DTEST=`date +%s`']
\ , ale#c#ParseCFlagsToList(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
- \ split('gcc -Isubdir -Ikernel/include -DTEST=`date +%s` -c file.c'))
+ \ split('gcc -Isubdir ' .
+ \ '-I'. ale#path#Simplify('kernel/include') .
+ \ ' -DTEST=`date +%s` -c file.c'))
Execute(The CFlagsToList parser should be able to parse multiple cflags #3):
runtime! ale_linters/c/gcc.vim
@@ -92,7 +94,9 @@ Execute(The CFlagsToList parser should be able to parse multiple cflags #3):
\ '-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include'),
\ '-DTEST=`date +%s`']
\ , ale#c#ParseCFlagsToList(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
- \ split('gcc -Dgoal=9 -Isubdir -Ikernel/include -DTEST=`date +%s` -c file.c'))
+ \ split('gcc -Dgoal=9 -Isubdir ' .
+ \ '-I'. ale#path#Simplify('kernel/include') .
+ \ ' -DTEST=`date +%s` -c file.c'))
Execute(The CFlagsToList parser should be able to parse multiple cflags #4):
runtime! ale_linters/c/gcc.vim
@@ -106,4 +110,5 @@ Execute(The CFlagsToList parser should be able to parse multiple cflags #4):
\ '-DTEST=`date +%s`']
\ , ale#c#ParseCFlagsToList(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
\ split('gcc -Dgoal=9 -Tlinkerfile.ld blabla -Isubdir ' .
- \ '-Ikernel/include -DTEST=`date +%s` -c file.c'))
+ \ '-I'. ale#path#Simplify('kernel/include') .
+ \ ' -DTEST=`date +%s` -c file.c'))