summaryrefslogtreecommitdiff
path: root/src/testdir/test_suspend.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_suspend.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_suspend.vim')
-rw-r--r--src/testdir/test_suspend.vim9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/testdir/test_suspend.vim b/src/testdir/test_suspend.vim
index 39ae32d4c..bf3f93acd 100644
--- a/src/testdir/test_suspend.vim
+++ b/src/testdir/test_suspend.vim
@@ -1,6 +1,6 @@
" Test :suspend
-source shared.vim
+source check.vim
source term_util.vim
func CheckSuspended(buf, fileExists)
@@ -18,9 +18,8 @@ func CheckSuspended(buf, fileExists)
endfunc
func Test_suspend()
- if !has('terminal') || !executable('/bin/sh')
- return
- endif
+ CheckFeature terminal
+ CheckExecutable /bin/sh
let buf = term_start('/bin/sh')
" Wait for shell prompt.
@@ -61,3 +60,5 @@ func Test_suspend()
exe buf . 'bwipe!'
call delete('Xfoo')
endfunc
+
+" vim: shiftwidth=2 sts=2 expandtab