aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-03 00:09:57 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-03 00:10:13 -0400
commit3e1daa84e91c1e94301419bf1297b4cd88c6498f (patch)
treeb4e133f4edf0dabbbbb36ea2cadbe256d7ce967d /src
parent6deddb26def6aaf4b18d1c31c319fe9db6dfb399 (diff)
downloadrneovim-3e1daa84e91c1e94301419bf1297b4cd88c6498f.tar.gz
rneovim-3e1daa84e91c1e94301419bf1297b4cd88c6498f.tar.bz2
rneovim-3e1daa84e91c1e94301419bf1297b4cd88c6498f.zip
oldtests: win: fix pathsep in :mkview test
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_mksession.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim
index e30d5f7a40..9ba264deb6 100644
--- a/src/nvim/testdir/test_mksession.vim
+++ b/src/nvim/testdir/test_mksession.vim
@@ -206,10 +206,11 @@ func Test_mkview_loadview_with_viewdir()
" The directory Xviewdir/ should have been created and the view
" should be stored in that directory.
- call assert_equal('Xviewdir/' .
+ let pathsep = has('win32') ? '\' : '/'
+ call assert_equal('Xviewdir' . pathsep .
\ substitute(
\ substitute(
- \ expand('%:p'), '/', '=+', 'g'), ':', '=-', 'g') . '=1.vim',
+ \ expand('%:p'), pathsep, '=+', 'g'), ':', '=-', 'g') . '=1.vim',
\ glob('Xviewdir/*'))
call assert_equal(1, &number)
call assert_match('\*:mkview\*$', getline('.'))