To: vim_dev@googlegroups.com Subject: Patch 8.2.3253 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3253 Problem: Channel test fails randomly. Solution: Add a sleep after sending the "echoerr" command. (Michael Soyka) Files: src/testdir/test_channel.vim, src/testdir/test_channel.py *** ../vim-8.2.3252/src/testdir/test_channel.vim 2021-07-10 22:21:36.666482755 +0200 --- src/testdir/test_channel.vim 2021-07-30 21:53:35.166440591 +0200 *************** *** 253,263 **** func Test_communicate_ipv6() CheckIPv6 - " FIXME: this test is very flaky on MS-Windows - if has('win32') - throw 'Skipped: test is very flaky with MS-Windows' - endif - call Test_communicate() endfunc --- 253,258 ---- *** ../vim-8.2.3252/src/testdir/test_channel.py 2021-07-01 22:11:24.671619362 +0200 --- src/testdir/test_channel.py 2021-07-30 21:51:19.590704461 +0200 *************** *** 114,119 **** --- 114,124 ---- print("sending: {0}".format(cmd)) self.request.sendall(cmd.encode('utf-8')) response = "ok" + # Wait a bit, so that the "ex" command is handled + # before the "ch_evalexpr() returns. Otherwise we are + # outside the try/catch when the "ex" command is + # handled. + time.sleep(0.02) elif decoded[1] == 'bad command': cmd = '["ex","foo bar"]' print("sending: {0}".format(cmd)) *** ../vim-8.2.3252/src/version.c 2021-07-30 21:32:41.448722501 +0200 --- src/version.c 2021-07-30 21:54:56.682281207 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3253, /**/ -- Facepalm statement #5: "Petrol getting more expensive? Not for me, I'm always tanking for 20 dollars" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///