2017-11-17 10:02:30 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('asm', 'gcc')
|
|
|
|
call ale#test#SetFilename('test.cpp')
|
2017-11-17 10:02:30 +00:00
|
|
|
let b:command_tail = ' -x assembler -fsyntax-only -iquote'
|
2018-07-15 17:24:53 +00:00
|
|
|
\ . ' ' . ale#Escape(g:dir)
|
2017-11-17 10:02:30 +00:00
|
|
|
\ . ' -Wall -'
|
|
|
|
|
|
|
|
After:
|
|
|
|
unlet! b:command_tail
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-17 10:02:30 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
Execute(The executable should be configurable):
|
|
|
|
AssertLinter 'gcc', ale#Escape('gcc') . b:command_tail
|
2017-11-17 10:02:30 +00:00
|
|
|
|
|
|
|
let b:ale_asm_gcc_executable = 'foobar'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . b:command_tail
|