I recently uploaded 8.0.1226 to Debian and nearly every build failed[0]. The most common failure is
Found errors in Test_popup_and_window_resize(): function RunTheTest[34]..Test_popup_and_window_resize line 16: Pattern '^!\\s*$' does not match '' function RunTheTest[34]..Test_popup_and_window_resize line 26: Pattern '^!\\s*$' does not match '~ ' function RunTheTest[34]..Test_popup_and_window_resize line 28: Pattern '^!\\s*$' does not match '' I investigated some and that test appears to be extremely flaky in those environments. I haven't had a failure yet locally (amd64 system), but those architectures fail almost every run. Attached is a log from that test and the associated diff showing where I added ch_log() calls. [0]: https://buildd.debian.org/status/logs.php?pkg=vim&ver=2%3A8.0.1226-1&suite=sid Cheers, -- James GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
==== start log session ==== 0.001498 : Starting job: ../vim --clean -c set noswapfile 0.002572 on 1: Created channel 0.002628 on 1: using pty /dev/pts/3 on fd 5 0.005027 on 1: writing out to buffer '!../vim' 0.005159 on 1: writing err to buffer '!../vim' 0.005244 : ioctl(TIOCSWINSZ) success 0.005822 : Creating 14 empty lines 0.006040 SEND on 1: '1' 0.006109 SEND on 1: '4' 0.006134 SEND on 1: 'o' 0.006171 SEND on 1: '' 0.006262 : Waiting... 0.006435 RECV on 1: '14o^[' 0.006465 : looking for messages on channels 0.006517 on 1: writing 5 bytes to terminal 0.006666 on 1: updating screen 0.206918 : looking for messages on channels 0.207105 : Starting completion 0.207228 SEND on 1: 'G' 0.207277 SEND on 1: 'i' 0.207299 SEND on 1: '' 0.207387 SEND on 1: '' 0.207468 : Waiting... 0.207575 RECV on 1: 'Gi^X^' 0.207586 : looking for messages on channels 0.207614 on 1: writing 6 bytes to terminal 0.207671 on 1: updating screen 0.307861 : looking for messages on channels 0.308039 : ... for the ! entry 0.319199 : looking for messages on channels 0.384362 RECV on 1: '[?1000h[?2004h[?1049h[?1h=[?2004h[1;15r[?12h[?12l[27m[23m[29m[m[H[2J[2;1H�[6n[2;1H [1;1H[>c]10;?]11;?' 0.384394 on 1: writing 126 bytes to terminal 0.385175 on 1: updating screen 0.395798 RECV on 1: '[?25l[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [m[15;82H0,0-1[9CAll[1;1H[?25h[?25l[15;1H[1m-- INSERT --[m[15;82H[K[15;82H2,1[11CAll[15;1H[K[2;1H[K[3;1H[K[4;1H[K[5;1H[K[6;1H[K[7;1H[K[8;1H[K[9;1H[K[10;1H[K[11;1H[K[12;1H[K[13;1H[K[14;1H[K[15;82H15,0-1[8CBot[14;1H[?25h[?25l [1m-- INSERT --[m[15;82H[K[15;82H15,1[10CBot[15;4H[1m^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)[m[15;82H[K[14;1H[?25h' 0.395824 : looking for messages on channels 0.395887 on 1: writing 1781 bytes to terminal 0.398595 on 1: updating screen 0.409164 : looking for messages on channels 1.365880 : Resizing window to 45 lines 1.366077 : Waiting... 1.366165 : looking for messages on channels 1.466420 : Redraw 1.467517 on 1: Resizing terminal to 44 lines 1.467605 : ioctl(TIOCSWINSZ) success 1.579400 : Waiting for empty first line 1.580120 : Sleeping 1.680449 RECV on 1: '[27m[23m[29m[m[H[2J[?25l[16;1H[1m[34m~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [m[44;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)[15;1H[?25h' 1.680477 : looking for messages on channels 1.680599 on 1: writing 3075 bytes to terminal 1.686094 on 1: updating screen 1.686275 : Checking line below cursor 1.697240 : looking for messages on channels ==== start log session ==== 0.000166 on 1: Stopping job with 'kill' 0.000376 on 1: out buffer has been wiped out 0.000413 on 1: err buffer has been wiped out
diff --git i/src/testdir/test_popup.vim w/src/testdir/test_popup.vim index b770e560d..bee544f56 100644 --- i/src/testdir/test_popup.vim +++ w/src/testdir/test_popup.vim @@ -637,27 +637,40 @@ func Test_popup_and_window_resize() if h < 15 return endif + call ch_logfile('popup.log', 'w') let g:buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': h / 3}) + call ch_log('Creating '.(h / 3 - 1).' empty lines') call term_sendkeys(g:buf, (h / 3 - 1)."o\<esc>") + call ch_log('Waiting...') call term_wait(g:buf, 200) + call ch_log('Starting completion') call term_sendkeys(g:buf, "Gi\<c-x>") call term_sendkeys(g:buf, "\<c-v>") + call ch_log('Waiting...') call term_wait(g:buf, 100) " popup first entry "!" must be at the top + call ch_log('... for the ! entry') call WaitFor('term_getline(g:buf, 1) =~ "^!"') call assert_match('^!\s*$', term_getline(g:buf, 1)) + call ch_log('Resizing window to '.(h - 1).' lines') exe 'resize +' . (h - 1) + call ch_log('Waiting...') call term_wait(g:buf, 100) + call ch_log('Redraw') redraw! " popup shifted down, first line is now empty + call ch_log('Waiting for empty first line') call WaitFor('term_getline(g:buf, 1) == ""') call assert_equal('', term_getline(g:buf, 1)) + call ch_log('Sleeping') sleep 100m " popup is below cursor line and shows first match "!" + call ch_log('Checking line below cursor') call WaitFor('term_getline(g:buf, term_getcursor(g:buf)[0] + 1) =~ "^!"') call assert_match('^!\s*$', term_getline(g:buf, term_getcursor(g:buf)[0] + 1)) " cursor line also shows ! call assert_match('^!\s*$', term_getline(g:buf, term_getcursor(g:buf)[0])) + call ch_logfile('popup.log') bwipe! endfunc