summaryrefslogtreecommitdiff
path: root/test/test_c_flag_parsing.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2021-03-01 20:11:10 +0000
committerw0rp <devw0rp@gmail.com>2021-03-01 20:11:10 +0000
commit9fe7b1fe6a23fb55e6d782293585d58193123f59 (patch)
tree0403deb70011aee7be08e586b10b5828cf69499e /test/test_c_flag_parsing.vader
parent48fab99a0ab793e1b9607795c21659f12bd6947f (diff)
downloadale-9fe7b1fe6a23fb55e6d782293585d58193123f59.zip
Close #2281 - Separate cwd commands from commands
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
Diffstat (limited to 'test/test_c_flag_parsing.vader')
-rw-r--r--test/test_c_flag_parsing.vader18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/test_c_flag_parsing.vader b/test/test_c_flag_parsing.vader
index 319e10dd..4329b573 100644
--- a/test/test_c_flag_parsing.vader
+++ b/test/test_c_flag_parsing.vader
@@ -26,24 +26,30 @@ Execute(The make command should be correct):
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')
AssertEqual
- \ ale#path#CdString(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'))
- \ . 'make -n --always-make',
+ \ [
+ \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
+ \ 'make -n --always-make',
+ \ ],
\ ale#c#GetMakeCommand(bufnr(''))
" You should be able to disable --always-make for a buffer.
let b:ale_c_always_make = 0
AssertEqual
- \ ale#path#CdString(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'))
- \ . 'make -n',
+ \ [
+ \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
+ \ 'make -n',
+ \ ],
\ ale#c#GetMakeCommand(bufnr(''))
Execute(Should recognize GNUmakefile as a makefile):
call ale#test#SetFilename('test_c_projects/gnumakefile_project/file.c')
AssertEqual
- \ ale#path#CdString(ale#path#Simplify(g:dir. '/test_c_projects/gnumakefile_project'))
- \ . 'make -n --always-make',
+ \ [
+ \ ale#path#Simplify(g:dir. '/test_c_projects/gnumakefile_project'),
+ \ 'make -n --always-make',
+ \ ],
\ ale#c#GetMakeCommand(bufnr(''))
Execute(The CFlags parser should be able to parse include directives):