2017-07-16 17:41:15 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('c', 'gcc')
|
2017-07-16 17:41:15 -04:00
|
|
|
|
|
|
|
let b:command_tail = ' -S -x c -fsyntax-only -iquote'
|
|
|
|
\ . ' ' . ale#Escape(getcwd())
|
|
|
|
\ . ' -std=c11 -Wall -'
|
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
2017-07-16 17:41:15 -04:00
|
|
|
unlet! b:command_tail
|
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'gcc', ['', ale#Escape('gcc') . b:command_tail]
|
2017-07-16 17:41:15 -04:00
|
|
|
|
|
|
|
let b:ale_c_gcc_executable = 'foobar'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foobar', ['', ale#Escape('foobar') . b:command_tail]
|