summaryrefslogtreecommitdiff
path: root/test/command_callback/test_cpp_ccls_command_callbacks.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_cpp_ccls_command_callbacks.vader')
-rw-r--r--test/command_callback/test_cpp_ccls_command_callbacks.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/command_callback/test_cpp_ccls_command_callbacks.vader b/test/command_callback/test_cpp_ccls_command_callbacks.vader
index 38947acf..eece42bc 100644
--- a/test/command_callback/test_cpp_ccls_command_callbacks.vader
+++ b/test/command_callback/test_cpp_ccls_command_callbacks.vader
@@ -8,6 +8,8 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The project root should be detected correctly using compile_commands.json file):
+ call ale#test#SetFilename(tempname() . '/dummy.cpp')
+
AssertLSPProject ''
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.cpp')
@@ -15,6 +17,8 @@ Execute(The project root should be detected correctly using compile_commands.jso
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
Execute(The project root should be detected correctly using .ccls file):
+ call ale#test#SetFilename(tempname() . '/dummy.cpp')
+
AssertLSPProject ''
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.cpp')
@@ -22,6 +26,8 @@ Execute(The project root should be detected correctly using .ccls file):
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
Execute(The project root should be detected correctly using .ccls-root file):
+ call ale#test#SetFilename(tempname() . '/dummy.cpp')
+
AssertLSPProject ''
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.cpp')