Patch 8.2.2700
Problem:    Nested autocmd test fails sometimes.
Solution:   Wait for the job to finish.
Files:      src/testdir/test_terminal.vim


*** ../vim-8.2.2699/src/testdir/test_terminal.vim       2021-04-03 
13:19:23.106814487 +0200
--- src/testdir/test_terminal.vim       2021-04-03 17:16:00.525485767 +0200
***************
*** 2021,2028 ****
    let buf = term_start(cmd, #{term_finish: 'close', hidden: 1})
    call assert_equal(lastline, line('.'))
  
!   call TermWait(buf)
!   exe buf . 'bwipe'
    call delete('Xtext')
    augroup TermTest
      au!
--- 2021,2028 ----
    let buf = term_start(cmd, #{term_finish: 'close', hidden: 1})
    call assert_equal(lastline, line('.'))
  
!   let job = term_getjob(buf)
!   call WaitForAssert({-> assert_equal("dead", job_status(job))})
    call delete('Xtext')
    augroup TermTest
      au!
*** ../vim-8.2.2699/src/version.c       2021-04-03 17:18:47.296936719 +0200
--- src/version.c       2021-04-03 17:20:25.564615758 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2700,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
49. You never have to deal with busy signals when calling your ISP...because
    you never log off.

 /// Bram Moolenaar -- b...@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    ///

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202104031523.133FNNu42546391%40masaka.moolenaar.net.

Raspunde prin e-mail lui