From 6a84605c578ea844a02e429edb38ff2986bc308b Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 9 Jul 2017 22:43:25 +0100 Subject: Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter --- test/handler/test_cppcheck_handler.vader | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/handler/test_cppcheck_handler.vader') diff --git a/test/handler/test_cppcheck_handler.vader b/test/handler/test_cppcheck_handler.vader index 51efad4e..f153b9b5 100644 --- a/test/handler/test_cppcheck_handler.vader +++ b/test/handler/test_cppcheck_handler.vader @@ -1,10 +1,8 @@ Before: - silent! cd /testplugin/test/handler - let g:dir = getcwd() + call ale#test#SetDirectory('/testplugin/test/handler') After: - silent execute 'cd ' . fnameescape(g:dir) - unlet! g:dir + call ale#test#RestoreDirectory() Execute(Basic errors should be handled by cppcheck): call ale#test#SetFilename('test.cpp') -- cgit v1.2.3