Fix failing unit tests for windows
This commit is contained in:
parent
18d0aeb1a0
commit
7593e20377
@ -1,4 +1,4 @@
|
||||
" Author: gagbo <gagbobada@gmail.com>, w0rp <devw0rp@gmail.com>
|
||||
" Author: gagbo <gagbobada@gmail.com>, w0rp <devw0rp@gmail.com>, roel0 <postelmansroel@gmail.com>
|
||||
" Description: Functions for integrating with C-family linters.
|
||||
|
||||
call ale#Set('c_parse_makefile', 0)
|
||||
|
@ -39,7 +39,7 @@ Execute(The CFlags parser should be able to parse include directives):
|
||||
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')
|
||||
|
||||
AssertEqual
|
||||
\ ['-I/testplugin/test/test_c_projects/makefile_project/subdir']
|
||||
\ ['-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')]
|
||||
\ , ale#c#ParseCFlags(bufnr(''), 'gcc -Isubdir -c file.c')
|
||||
|
||||
Execute(The CFlags parser should be able to parse macro directives):
|
||||
@ -48,7 +48,7 @@ Execute(The CFlags parser should be able to parse macro directives):
|
||||
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')
|
||||
|
||||
AssertEqual
|
||||
\ ['-I/testplugin/test/test_c_projects/makefile_project/subdir',
|
||||
\ ['-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir'),
|
||||
\ '-DTEST=1']
|
||||
\ , ale#c#ParseCFlags(bufnr(''), 'gcc -Isubdir -DTEST=1 -c file.c')
|
||||
|
||||
@ -58,7 +58,7 @@ Execute(The CFlags parser should be able to parse macro directives with spaces):
|
||||
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')
|
||||
|
||||
AssertEqual
|
||||
\ ['-I/testplugin/test/test_c_projects/makefile_project/subdir',
|
||||
\ ['-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir'),
|
||||
\ '-DTEST=$(( 2 * 4 ))']
|
||||
\ , ale#c#ParseCFlags(bufnr(''), 'gcc -Isubdir -DTEST=$(( 2 * 4 )) -c file.c')
|
||||
|
||||
@ -68,7 +68,7 @@ Execute(The CFlags parser should be able to parse shell directives with spaces):
|
||||
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')
|
||||
|
||||
AssertEqual
|
||||
\ ['-I/testplugin/test/test_c_projects/makefile_project/subdir',
|
||||
\ ['-I' . ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir'),
|
||||
\ '-DTEST=`date +%s`']
|
||||
\ , ale#c#ParseCFlags(bufnr(''), 'gcc -Isubdir -DTEST=`date +%s` -c file.c')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user