mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
oldtests: win: shellslash for cdpath,tags,:find
This commit is contained in:
parent
fa0e32fba2
commit
6245b4873d
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user