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\<f5>\<enter>\<esc>", 'tx')
    call assert_equal(["March", "M", "March"], getline(1,4))
    %d
-   bwipe!
  endfu
  
  
--- 203,208 ----
***************
*** 233,239 ****
    call feedkeys("a\<f5>\<c-p>\<c-p>\<enter>\<esc>", 'tx')
    call assert_equal('December', getline(1))
  
-   bwipe!
    iunmap <F5>
  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 -- b...@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    ///

-- 
-- 
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.

Raspunde prin e-mail lui