oldtests: win: shellslash for cdpath,tags,:find

This commit is contained in:
Jan Edmund Lazo 2018-03-28 17:09:33 -04:00
parent fa0e32fba2
commit 6245b4873d
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@
" Do all the tests in a separate window to avoid E211 when we recursively
" delete the Xfind directory during cleanup
func Test_find_complete()
let shellslash = &shellslash
set shellslash
set belloff=all
" On windows a stale "Xfind" directory may exist, remove it so that
@ -154,4 +156,5 @@ func Test_find_complete()
exe 'cd ' . cwd
call delete('Xfind', 'rf')
set path&
let &shellslash = shellslash
endfunc

View File

@ -158,6 +158,8 @@ func Test_set_completion()
call assert_equal('"set fileencodings:ucs-bom,utf-8,default,latin1', @:)
" Expand directories.
let shellslash = &shellslash
set shellslash
call feedkeys(":set cdpath=./\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_match('./samples/ ', @:)
call assert_notmatch('./small.vim ', @:)
@ -168,6 +170,7 @@ func Test_set_completion()
call feedkeys(":set tags=./\\\\ dif\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_equal('"set tags=./\\ diff diffexpr diffopt', @:)
let &shellslash = shellslash
endfunc
func Test_set_errors()