Mercurial > vim
diff src/testdir/test_mksession.vim @ 21765:08940efa6b4e v8.2.1432
patch 8.2.1432: various inconsistencies in test files
Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 18:50:36 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 19:00:08 +0200 |
parents | 068337e86133 |
children | 4ed106deb772 |
line wrap: on
line diff
--- a/src/testdir/test_mksession.vim +++ b/src/testdir/test_mksession.vim @@ -150,10 +150,9 @@ func Test_mksession_large_winheight() 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 @@ func Test_mksession_no_errmsg() 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 @@ endfunc " 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