To: vim_dev@googlegroups.com Subject: Patch 8.1.2099 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2099 Problem: state() test fails on some Mac systems. Solution: Increase the wait time. (closes #4983) Files: src/testdir/test_functions.vim *** ../vim-8.1.2098/src/testdir/test_functions.vim 2019-09-29 14:36:26.051559456 +0200 --- src/testdir/test_functions.vim 2019-09-29 14:36:26.051559456 +0200 *************** *** 1667,1672 **** --- 1667,1673 ---- let lines =<< trim END call setline(1, ['one', 'two', 'three']) map ;; gg + set complete=. func RunTimer() call timer_start(10, {id -> execute('let g:state = state()') .. execute('let g:mode = mode()')}) endfunc *************** *** 1694,1702 **** call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000) ! " Insert mode completion call term_sendkeys(buf, ":call RunTimer()\Got\") ! call term_wait(buf, 50) call term_sendkeys(buf, "\") call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: aSc; mode: i', term_getline(buf, 6))}, 1000) --- 1695,1703 ---- call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000) ! " Insert mode completion (bit slower on Mac) call term_sendkeys(buf, ":call RunTimer()\Got\") ! call term_wait(buf, 200) call term_sendkeys(buf, "\") call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: aSc; mode: i', term_getline(buf, 6))}, 1000) *** ../vim-8.1.2098/src/version.c 2019-09-28 19:08:41.679541071 +0200 --- src/version.c 2019-09-28 19:28:55.221392854 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 2099, /**/ -- A poem: read aloud: <> !*''# Waka waka bang splat tick tick hash, ^"`$$- Caret quote back-tick dollar dollar dash, !*=@$_ Bang splat equal at dollar under-score, %*<> ~#4 Percent splat waka waka tilde number four, &[]../ Ampersand bracket bracket dot dot slash, |{,,SYSTEM HALTED Vertical-bar curly-bracket comma comma CRASH. Fred Bremmer and Steve Kroese (Calvin College & Seminary of Grand Rapids, MI.) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///