summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-17 10:19:08 +0100
committerw0rp <devw0rp@gmail.com>2017-07-17 10:19:08 +0100
commiteab77b70722a87050ca12e0f93fe92e65c36361b (patch)
treeea20b8ccbdbca5c45112a41b2deecfadafd848b9 /test/command_callback
parent3b1bc2bd138bc0109215d06b10be6909e808d5ec (diff)
downloadale-eab77b70722a87050ca12e0f93fe92e65c36361b.zip
#703 Add arguments to avoid generating plist files if no build directory is detected for clang-check
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_cpp_clangcheck_command_callbacks.vader14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/command_callback/test_cpp_clangcheck_command_callbacks.vader b/test/command_callback/test_cpp_clangcheck_command_callbacks.vader
index e51ba3d2..34b87fc6 100644
--- a/test/command_callback/test_cpp_clangcheck_command_callbacks.vader
+++ b/test/command_callback/test_cpp_clangcheck_command_callbacks.vader
@@ -26,20 +26,28 @@ Execute(The executable should be configurable):
Execute(The executable should be used in the command):
AssertEqual
- \ ale#Escape('clang-check') . ' -analyze %s',
+ \ ale#Escape('clang-check')
+ \ . ' -analyze %s'
+ \ . ' -extra-arg -Xanalyzer -extra-arg -analyzer-output=text',
\ ale_linters#cpp#clangcheck#GetCommand(bufnr(''))
let b:ale_cpp_clangcheck_executable = 'foobar'
+ " The extra arguments in the command are used to prevent .plist files from
+ " being generated.
AssertEqual
- \ ale#Escape('foobar') . ' -analyze %s',
+ \ ale#Escape('foobar')
+ \ . ' -analyze %s'
+ \ . ' -extra-arg -Xanalyzer -extra-arg -analyzer-output=text',
\ ale_linters#cpp#clangcheck#GetCommand(bufnr(''))
Execute(The options should be configurable):
let b:ale_cpp_clangcheck_options = '--something'
AssertEqual
- \ ale#Escape('clang-check') . ' -analyze %s --something',
+ \ ale#Escape('clang-check')
+ \ . ' -analyze %s --something'
+ \ . ' -extra-arg -Xanalyzer -extra-arg -analyzer-output=text',
\ ale_linters#cpp#clangcheck#GetCommand(bufnr(''))
Execute(The build directory should be used when set):