diff options
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r-- | src/testdir/check.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim index 48dbd8539..5d61f0dba 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -37,3 +37,20 @@ func CheckUnix() throw 'Skipped: only works on Unix' endif endfunc + +" Command to check that making screendumps is supported. +" Caller must source screendump.vim +command CheckScreendump call CheckScreendump() +func CheckScreendump() + if !CanRunVimInTerminal() + throw 'Skipped: cannot make screendumps' + endif +endfunc + +" Command to check that we can Run Vim in a terminal window +command CheckRunVimInTerminal call CheckRunVimInTerminal() +func CheckRunVimInTerminal() + if !CanRunVimInTerminal() + throw 'Skipped: cannot run Vim in a terminal window' + endif +endfunc |