summaryrefslogtreecommitdiff
path: root/src/testdir/test_startup.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-12 18:50:36 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-12 18:50:36 +0200
commit6d91bcb4d23b5c6a0be72c384beaf385e2d9d606 (patch)
tree0f4129e5f6e049ce5313520239de270cd9389580 /src/testdir/test_startup.vim
parentc3d6e8a46a8fc5de622e8df9dbd25edd03e00c5b (diff)
downloadvim-git-6d91bcb4d23b5c6a0be72c384beaf385e2d9d606.tar.gz
patch 8.2.1432: various inconsistencies in test filesv8.2.1432
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)
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r--src/testdir/test_startup.vim17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim
index 4c8c887bb..567c43336 100644
--- a/src/testdir/test_startup.vim
+++ b/src/testdir/test_startup.vim
@@ -21,9 +21,7 @@ endfunc
" 2. packages
" 3. plugins in after directories
func Test_after_comes_later()
- if !has('packages')
- return
- endif
+ CheckFeature packages
let before =<< trim [CODE]
set nocp viminfo+=nviminfo
set guioptions+=M
@@ -80,9 +78,7 @@ func Test_after_comes_later()
endfunc
func Test_pack_in_rtp_when_plugins_run()
- if !has('packages')
- return
- endif
+ CheckFeature packages
let before =<< trim [CODE]
set nocp viminfo+=nviminfo
set guioptions+=M
@@ -113,9 +109,8 @@ func Test_pack_in_rtp_when_plugins_run()
endfunc
func Test_help_arg()
- if !has('unix') && has('gui')
- " this doesn't work with gvim on MS-Windows
- return
+ if !has('unix') && has('gui_running')
+ throw 'Skipped: does not work with gvim on MS-Windows'
endif
if RunVim([], [], '--help >Xtestout')
let lines = readfile('Xtestout')
@@ -554,9 +549,7 @@ func Test_file_args()
endfunc
func Test_startuptime()
- if !has('startuptime')
- return
- endif
+ CheckFeature startuptime
let after = ['qall']
if RunVim([], after, '--startuptime Xtestout one')
let lines = readfile('Xtestout')