From 3e1daa84e91c1e94301419bf1297b4cd88c6498f Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 3 Sep 2018 00:09:57 -0400 Subject: oldtests: win: fix pathsep in :mkview test --- src/nvim/testdir/test_mksession.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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('.')) -- cgit