To: vim_dev@googlegroups.com Subject: Patch 7.4.2149 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2149 Problem: If a test leaves a window open a following test may fail. Solution: Always close extra windows after running a test. Files: src/testdir/runtest.vim, src/testdir/test_popup.vim *** ../vim-7.4.2148/src/testdir/runtest.vim 2016-07-23 14:01:11.393652479 +0200 --- src/testdir/runtest.vim 2016-08-02 22:57:28.238018436 +0200 *************** *** 103,108 **** --- 103,114 ---- if exists("*TearDown") call TearDown() endif + + " Close any extra windows and make the current one not modified. + while winnr('$') > 1 + bwipe! + endwhile + set nomodified endfunc " Source the test script. First grab the file name, in case the script *** ../vim-7.4.2148/src/testdir/test_popup.vim 2016-08-02 22:51:38.937317541 +0200 --- src/testdir/test_popup.vim 2016-08-02 22:54:14.275850082 +0200 *************** *** 203,209 **** call feedkeys("aM\\\", 'tx') call assert_equal(["March", "M", "March"], getline(1,4)) %d - bwipe! endfu --- 203,208 ---- *************** *** 233,239 **** call feedkeys("a\\\\\", 'tx') call assert_equal('December', getline(1)) - bwipe! iunmap endfunc --- 232,237 ---- *** ../vim-7.4.2148/src/version.c 2016-08-02 23:01:36.811672696 +0200 --- src/version.c 2016-08-02 23:02:28.179188242 +0200 *************** *** 765,766 **** --- 765,768 ---- { /* Add new patch number below this line */ + /**/ + 2149, /**/ -- SOLDIER: What? Ridden on a horse? ARTHUR: Yes! SOLDIER: You're using coconuts! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 ///