mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
oldtests: set shellslash for Test_non_zero_arg
This commit is contained in:
@@ -134,6 +134,8 @@ func Test_non_zero_arg()
|
|||||||
" call test_settime(93784)
|
" call test_settime(93784)
|
||||||
" call Try_arg_non_zero("mode(%v%)", 'x', 'x!')
|
" call Try_arg_non_zero("mode(%v%)", 'x', 'x!')
|
||||||
" call test_settime(0)
|
" call test_settime(0)
|
||||||
|
let shellslash = &shellslash
|
||||||
|
set shellslash
|
||||||
|
|
||||||
call Try_arg_non_zero("shellescape('foo%', %v%)", "'foo%'", "'foo\\%'")
|
call Try_arg_non_zero("shellescape('foo%', %v%)", "'foo%'", "'foo\\%'")
|
||||||
|
|
||||||
@@ -152,4 +154,6 @@ func Test_non_zero_arg()
|
|||||||
let r = visualmode(v)
|
let r = visualmode(v)
|
||||||
call assert_equal('', r, 'result for ' . v . ' is not "" but ' . r)
|
call assert_equal('', r, 'result for ' . v . ' is not "" but ' . r)
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
let &shellslash = shellslash
|
||||||
endfunc
|
endfunc
|
||||||
|
Reference in New Issue
Block a user