diff options
Diffstat (limited to 'test/handler/test_cppcheck_handler.vader')
-rw-r--r-- | test/handler/test_cppcheck_handler.vader | 6 |
1 files changed, 2 insertions, 4 deletions
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') |