mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
oldtests: win: shellslash for cdpath,tags,:find
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
" Do all the tests in a separate window to avoid E211 when we recursively
|
" Do all the tests in a separate window to avoid E211 when we recursively
|
||||||
" delete the Xfind directory during cleanup
|
" delete the Xfind directory during cleanup
|
||||||
func Test_find_complete()
|
func Test_find_complete()
|
||||||
|
let shellslash = &shellslash
|
||||||
|
set shellslash
|
||||||
set belloff=all
|
set belloff=all
|
||||||
|
|
||||||
" On windows a stale "Xfind" directory may exist, remove it so that
|
" On windows a stale "Xfind" directory may exist, remove it so that
|
||||||
@@ -154,4 +156,5 @@ func Test_find_complete()
|
|||||||
exe 'cd ' . cwd
|
exe 'cd ' . cwd
|
||||||
call delete('Xfind', 'rf')
|
call delete('Xfind', 'rf')
|
||||||
set path&
|
set path&
|
||||||
|
let &shellslash = shellslash
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -158,6 +158,8 @@ func Test_set_completion()
|
|||||||
call assert_equal('"set fileencodings:ucs-bom,utf-8,default,latin1', @:)
|
call assert_equal('"set fileencodings:ucs-bom,utf-8,default,latin1', @:)
|
||||||
|
|
||||||
" Expand directories.
|
" Expand directories.
|
||||||
|
let shellslash = &shellslash
|
||||||
|
set shellslash
|
||||||
call feedkeys(":set cdpath=./\<C-A>\<C-B>\"\<CR>", 'tx')
|
call feedkeys(":set cdpath=./\<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
call assert_match('./samples/ ', @:)
|
call assert_match('./samples/ ', @:)
|
||||||
call assert_notmatch('./small.vim ', @:)
|
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 feedkeys(":set tags=./\\\\ dif\<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
call assert_equal('"set tags=./\\ diff diffexpr diffopt', @:)
|
call assert_equal('"set tags=./\\ diff diffexpr diffopt', @:)
|
||||||
|
let &shellslash = shellslash
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_set_errors()
|
func Test_set_errors()
|
||||||
|
Reference in New Issue
Block a user