summaryrefslogtreecommitdiff
path: root/src/testdir/runtest.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-11 22:56:15 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-11 22:56:15 +0200
commit0b5dc644465c549ac54fe3c4ad232dd692000d26 (patch)
tree9bcd858667e7470d523d83c9a4aec8690c7427d6 /src/testdir/runtest.vim
parent08cc374dabd2a02785129fa1c0100f7745c244ad (diff)
downloadvim-git-0b5dc644465c549ac54fe3c4ad232dd692000d26.tar.gz
patch 8.1.1839: insufficient info when test fails because of screen sizev8.1.1839
Problem: Insufficient info when test fails because of screen size. Solution: Report the detected screen size.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r--src/testdir/runtest.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 436ef72f6..c606cacd2 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -34,12 +34,14 @@ so small.vim
" Check that the screen size is at least 24 x 80 characters.
if &lines < 24 || &columns < 80
- let error = 'Screen size too small! Tests require at least 24 lines with 80 characters'
+ let error = 'Screen size too small! Tests require at least 24 lines with 80 characters, got ' .. &lines .. ' lines with ' .. &columns .. ' characters'
echoerr error
split test.log
$put =error
write
split messages
+ call append(line('$'), '')
+ call append(line('$'), 'From ' . expand('%') . ':')
call append(line('$'), error)
write
qa!
@@ -170,7 +172,7 @@ func RunTheTest(test)
endtry
endif
- " Clear any autocommands
+ " Clear any autocommands and put back the catch-all for SwapExists.
au!
au SwapExists * call HandleSwapExists()