aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-05 21:42:41 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-05 22:57:08 -0400
commit5262a1f4b52926e3082ca123a3fb6c3053746600 (patch)
tree29ab8a2f1e4b1b7bbcbe4470d6f568b3098cb768 /src
parenteba1ebafe554fcf6dcd8c933f53b43ca9c5b3b6a (diff)
downloadrneovim-5262a1f4b52926e3082ca123a3fb6c3053746600.tar.gz
rneovim-5262a1f4b52926e3082ca123a3fb6c3053746600.tar.bz2
rneovim-5262a1f4b52926e3082ca123a3fb6c3053746600.zip
oldtests: win: filename cannot have "
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_mksession.vim11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim
index c2e7bb7bf9..c790bd32e3 100644
--- a/src/nvim/testdir/test_mksession.vim
+++ b/src/nvim/testdir/test_mksession.vim
@@ -17,9 +17,9 @@ func Test_mksession()
\ ' four leadinG spaces',
\ 'two consecutive tabs',
\ 'two tabs in one line',
- \ 'one ä multibyteCharacter',
- \ 'aä Ä two multiByte characters',
- \ 'Aäöü three mulTibyte characters',
+ \ 'one ä multibyteCharacter',
+ \ 'aä Ä two multiByte characters',
+ \ 'Aäöü three mulTibyte characters',
\ 'short line',
\ ])
let tmpfile = 'Xtemp'
@@ -240,13 +240,14 @@ endfunc
func Test_mksession_quote_in_filename()
let v:errmsg = ''
+ let filename = has('win32') ? 'x''y' : 'x''y"z'
%bwipe!
split another
- split x'y\"z
+ execute 'split' escape(filename, '"')
mksession! Xtest_mks_quoted.out
%bwipe!
source Xtest_mks_quoted.out
- call assert_true(bufexists("x'y\"z"))
+ call assert_true(bufexists(filename))
%bwipe!
call delete('Xtest_mks_quoted.out')