Fix tests on Windows

This commit is contained in:
w0rp 2019-06-03 22:14:18 +01:00
parent 4129c356e8
commit 4496c9b3c1
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
2 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,9 @@ Execute(cppcheck for C should detect compile_commands.json files):
AssertLinter 'cppcheck',
\ ale#path#CdString(ale#path#Simplify(g:dir . '/cppcheck_paths/one'))
\ . ale#Escape('cppcheck')
\ . ' -q --language=c --project=''compile_commands.json'' --enable=style %t'
\ . ' -q --language=c'
\ . ' --project=' . ale#Escape('compile_commands.json')
\ . ' --enable=style %t'
Execute(cppcheck for C should detect compile_commands.json files in build directories):
call ale#test#SetFilename('cppcheck_paths/with_build_dir/foo.cpp')

View File

@ -25,7 +25,9 @@ Execute(cppcheck for C++ should detect compile_commands.json files):
AssertLinter 'cppcheck',
\ ale#path#CdString(ale#path#Simplify(g:dir . '/cppcheck_paths/one'))
\ . ale#Escape('cppcheck')
\ . ' -q --language=c++ --project=''compile_commands.json'' --enable=style %t'
\ . ' -q --language=c++'
\ . ' --project=' . ale#Escape('compile_commands.json')
\ . ' --enable=style %t'
Execute(cppcheck for C++ should detect compile_commands.json files in build directories):
call ale#test#SetFilename('cppcheck_paths/with_build_dir/foo.cpp')