summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-11 20:08:44 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-11 20:08:44 +0200
commit62cd26a2294b7a5eead7c145e9bbc7c75f3bb801 (patch)
treefcbe8643a2e737beebc5807c9763fdfdef0f8356
parent6eb36ade9883f54c84c739c6a3504ddfa3343063 (diff)
downloadvim-git-8.2.1836.tar.gz
patch 8.2.1836: autocmd test fails on pacifist systemsv8.2.1836
Problem: Autocmd test fails on pacifist systems. Solution: Check that /bin/kill exists. (James McCoy, closes #7117) Tune the timing, make the autocmd test run faster.
-rw-r--r--src/testdir/test_autocmd.vim11
-rw-r--r--src/version.c2
2 files changed, 10 insertions, 3 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index b7cc0c0bf..639f9eb67 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -30,7 +30,7 @@ func Test_CursorHold_autocmd()
call writefile(before, 'Xinit')
let buf = RunVimInTerminal('-S Xinit Xfile', {})
call term_sendkeys(buf, "G")
- call term_wait(buf, 20)
+ call term_wait(buf, 50)
call term_sendkeys(buf, "gg")
call term_wait(buf)
call WaitForAssert({-> assert_equal(['1'], readfile('Xoutput')[-1:-1])})
@@ -77,9 +77,9 @@ if has('timers')
" CursorHoldI event.
let g:triggered = 0
au CursorHoldI * let g:triggered += 1
- set updatetime=500
+ set updatetime=100
call job_start(has('win32') ? 'cmd /c echo:' : 'echo',
- \ {'exit_cb': {-> timer_start(1000, 'ExitInsertMode')}})
+ \ {'exit_cb': {-> timer_start(200, 'ExitInsertMode')}})
call feedkeys('a', 'x!')
call assert_equal(1, g:triggered)
unlet g:triggered
@@ -452,6 +452,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost()
mksession!
let content =<< trim [CODE]
+ call test_override('ui_delay', 10)
set nocp noswapfile
let v:swapchoice="e"
augroup test_autocmd_sessionload
@@ -2421,6 +2422,8 @@ endfunc
" Test closing a window or editing another buffer from a FileChangedRO handler
" in a readonly buffer
func Test_FileChangedRO_winclose()
+ call test_override('ui_delay', 10)
+
augroup FileChangedROTest
au!
autocmd FileChangedRO * quit
@@ -2440,6 +2443,7 @@ func Test_FileChangedRO_winclose()
call assert_fails('normal i', 'E788:')
close
augroup! FileChangedROTest
+ call test_override('ALL', 0)
endfunc
func LogACmd()
@@ -2533,6 +2537,7 @@ endfunc
" Tests for SigUSR1 autocmd event, which is only available on posix systems.
func Test_autocmd_sigusr1()
CheckUnix
+ CheckExecutable /bin/kill
let g:sigusr1_passed = 0
au SigUSR1 * let g:sigusr1_passed = 1
diff --git a/src/version.c b/src/version.c
index 7a8fe0589..9f5dbb0cd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1836,
+/**/
1835,
/**/
1834,