Fixed windows compatibility unit tests #1167

This commit is contained in:
roel0 2018-03-21 20:56:29 +01:00
parent 69237a7e57
commit cf62ef7b07

View File

@ -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'), \ '-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include'),
\ '-DTEST=`date +%s`'] \ '-DTEST=`date +%s`']
\ , ale#c#ParseCFlagsToList(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), \ , 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): Execute(The CFlagsToList parser should be able to parse multiple cflags #3):
runtime! ale_linters/c/gcc.vim 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'), \ '-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include'),
\ '-DTEST=`date +%s`'] \ '-DTEST=`date +%s`']
\ , ale#c#ParseCFlagsToList(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), \ , 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): Execute(The CFlagsToList parser should be able to parse multiple cflags #4):
runtime! ale_linters/c/gcc.vim 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`'] \ '-DTEST=`date +%s`']
\ , ale#c#ParseCFlagsToList(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), \ , ale#c#ParseCFlagsToList(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
\ split('gcc -Dgoal=9 -Tlinkerfile.ld blabla -Isubdir ' . \ 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'))