comparison src/testdir/runtest.vim @ 17684:e2bfdd281578 v8.1.1839

patch 8.1.1839: insufficient info when test fails because of screen size commit https://github.com/vim/vim/commit/0b5dc644465c549ac54fe3c4ad232dd692000d26 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 11 22:56:15 2019 +0200 patch 8.1.1839: insufficient info when test fails because of screen size Problem: Insufficient info when test fails because of screen size. Solution: Report the detected screen size.
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Aug 2019 23:00:09 +0200
parents 4fe44a3b732f
children cd8d071bbe70
comparison
equal deleted inserted replaced
17683:7e02187c975e 17684:e2bfdd281578
32 " Without the +eval feature we can't run these tests, bail out. 32 " Without the +eval feature we can't run these tests, bail out.
33 so small.vim 33 so small.vim
34 34
35 " Check that the screen size is at least 24 x 80 characters. 35 " Check that the screen size is at least 24 x 80 characters.
36 if &lines < 24 || &columns < 80 36 if &lines < 24 || &columns < 80
37 let error = 'Screen size too small! Tests require at least 24 lines with 80 characters' 37 let error = 'Screen size too small! Tests require at least 24 lines with 80 characters, got ' .. &lines .. ' lines with ' .. &columns .. ' characters'
38 echoerr error 38 echoerr error
39 split test.log 39 split test.log
40 $put =error 40 $put =error
41 write 41 write
42 split messages 42 split messages
43 call append(line('$'), '')
44 call append(line('$'), 'From ' . expand('%') . ':')
43 call append(line('$'), error) 45 call append(line('$'), error)
44 write 46 write
45 qa! 47 qa!
46 endif 48 endif
47 49
168 catch 170 catch
169 call add(v:errors, 'Caught exception in TearDown() after ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint) 171 call add(v:errors, 'Caught exception in TearDown() after ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint)
170 endtry 172 endtry
171 endif 173 endif
172 174
173 " Clear any autocommands 175 " Clear any autocommands and put back the catch-all for SwapExists.
174 au! 176 au!
175 au SwapExists * call HandleSwapExists() 177 au SwapExists * call HandleSwapExists()
176 178
177 " Close any stray popup windows 179 " Close any stray popup windows
178 if has('textprop') 180 if has('textprop')