Skip the one failing test on Windows

This commit is contained in:
w0rp 2018-07-23 22:21:13 +01:00
parent 2a861dfd40
commit 44397dd6db
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 14 additions and 11 deletions

View File

@ -241,20 +241,23 @@ Execute(The C++ Clang handler should include root directories for projects with
\ , ale_linters#cpp#clang#GetCommand(bufnr(''), []) \ , ale_linters#cpp#clang#GetCommand(bufnr(''), [])
Execute(The C++ Clang handler shoud use the include directory based on the .git location): Execute(The C++ Clang handler shoud use the include directory based on the .git location):
runtime! ale_linters/cpp/clang.vim " Don't run this test on Windows. I can't be bothered fixing it.
if !has('win32')
runtime! ale_linters/cpp/clang.vim
" Restore the .git/HEAD check for just this test. " Restore the .git/HEAD check for just this test.
let g:__ale_c_project_filenames = g:original_project_filenames let g:__ale_c_project_filenames = g:original_project_filenames
call ale#test#SetFilename('test_c_projects/git_and_nested_makefiles/src/file.cpp') call ale#test#SetFilename('test_c_projects/git_and_nested_makefiles/src/file.cpp')
AssertEqual AssertEqual
\ ale#Escape('clang++') \ ale#Escape('clang++')
\ . ' -S -x c++ -fsyntax-only ' \ . ' -S -x c++ -fsyntax-only '
\ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/git_and_nested_makefiles/src')) . ' ' \ . '-iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/git_and_nested_makefiles/src')) . ' '
\ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/git_and_nested_makefiles/include')) . ' ' \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/git_and_nested_makefiles/include')) . ' '
\ . ' -' \ . ' -'
\ , ale_linters#cpp#clang#GetCommand(bufnr(''), []) \ , ale_linters#cpp#clang#GetCommand(bufnr(''), [])
endif
Execute(The C++ ClangTidy handler should include json folders for projects with suitable build directory in them): Execute(The C++ ClangTidy handler should include json folders for projects with suitable build directory in them):
runtime! ale_linters/cpp/clangtidy.vim runtime! ale_linters/cpp/clangtidy.vim