Patch 9.0.0232
Problem:    Test with BufNewFile autocmd is flaky.
Solution:   Use another file name.
Files:      src/testdir/test_vim9_cmd.vim


*** ../vim-9.0.0231/src/testdir/test_vim9_cmd.vim       2022-08-14 
21:46:03.686021093 +0100
--- src/testdir/test_vim9_cmd.vim       2022-08-20 20:05:04.678870785 +0100
***************
*** 1025,1047 ****
  
  def Test_bar_line_continuation()
    var lines =<< trim END
!       au BufNewFile Xfile g:readFile = 1
            | g:readExtra = 2
        g:readFile = 0
        g:readExtra = 0
!       edit Xfile
        assert_equal(1, g:readFile)
        assert_equal(2, g:readExtra)
        bwipe!
        au! BufNewFile
  
!       au BufNewFile Xfile g:readFile = 1
            | g:readExtra = 2
            | g:readMore = 3
        g:readFile = 0
        g:readExtra = 0
        g:readMore = 0
!       edit Xfile
        assert_equal(1, g:readFile)
        assert_equal(2, g:readExtra)
        assert_equal(3, g:readMore)
--- 1025,1047 ----
  
  def Test_bar_line_continuation()
    var lines =<< trim END
!       au BufNewFile XveryNewFile g:readFile = 1
            | g:readExtra = 2
        g:readFile = 0
        g:readExtra = 0
!       edit XveryNewFile
        assert_equal(1, g:readFile)
        assert_equal(2, g:readExtra)
        bwipe!
        au! BufNewFile
  
!       au BufNewFile XveryNewFile g:readFile = 1
            | g:readExtra = 2
            | g:readMore = 3
        g:readFile = 0
        g:readExtra = 0
        g:readMore = 0
!       edit XveryNewFile
        assert_equal(1, g:readFile)
        assert_equal(2, g:readExtra)
        assert_equal(3, g:readMore)
*** ../vim-9.0.0231/src/version.c       2022-08-20 19:26:11.039073212 +0100
--- src/version.c       2022-08-20 20:06:02.266827476 +0100
***************
*** 733,734 ****
--- 733,736 ----
  {   /* Add new patch number below this line */
+ /**/
+     232,
  /**/

-- 
Proofread carefully to see if you any words out.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220820195606.99FB91C0ADA%40moolenaar.net.

Raspunde prin e-mail lui