patch 8.2.1432: various inconsistencies in test files
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695)
diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim
index dac7c54..5693b97 100644
--- a/src/testdir/test_mksession.vim
+++ b/src/testdir/test_mksession.vim
@@ -150,10 +150,9 @@
endfunc
func Test_mksession_rtp()
- if has('win32')
- " TODO: fix problem with backslashes
- return
- endif
+ " TODO: fix problem with backslashes on Win32
+ CheckNotMSWindows
+
new
let _rtp=&rtp
" Make a real long (invalid) runtimepath value,
@@ -552,10 +551,9 @@
endfunc
func Test_mksession_quote_in_filename()
- if !has('unix')
- " only Unix can handle this weird filename
- return
- endif
+ " only Unix can handle this weird filename
+ CheckUnix
+
let v:errmsg = ''
%bwipe!
split another
@@ -721,10 +719,9 @@
" Test for mksession with window position
func Test_mksession_winpos()
- if !has('gui_running')
- " Only applicable in GUI Vim
- return
- endif
+ " Only applicable in GUI Vim
+ CheckGui
+
set sessionoptions+=winpos
mksession! Xtest_mks.out
let found_winpos = v:false