1
0
forked from aniani/vim

patch 8.0.1302: still too many old style tests

Problem:    Still too many old style tests.
Solution:   Convert a few more tests to new style. (Yegappan Lakshmanan,
            closes #2326)
This commit is contained in:
Bram Moolenaar
2017-11-16 21:52:51 +01:00
parent 7cb769a69f
commit 209d3874c1
24 changed files with 659 additions and 744 deletions

View File

@@ -103,6 +103,10 @@ func RunTheTest(test)
" buffers.
%bwipe!
" The test may change the current directory. Save and restore the
" directory after executing the test.
let save_cwd = getcwd()
if exists("*SetUp")
try
call SetUp()
@@ -157,6 +161,8 @@ func RunTheTest(test)
break
endif
endwhile
exe 'cd ' . save_cwd
endfunc
func AfterTheTest()