Patch 8.2.3480 (after 8.2.3478)
Problem:    Test does not fail without the fix for a crash.
Solution:   Write the bad code in a file and source it. (Dominique Pellé,
            closes #8961)
Files:      src/testdir/test_trycatch.vim


*** ../vim-8.2.3479/src/testdir/test_trycatch.vim       2021-10-04 
18:52:16.008381182 +0100
--- src/testdir/test_trycatch.vim       2021-10-05 19:22:12.390132230 +0100
***************
*** 2274,2290 ****
  endfunc
  
  func ThisWillFail()
!   try
!     if x | endif
!   catch
!     for l in []
!   finally 
  endfunc
  
  func Test_error_in_catch_and_finally()
!   call assert_fails('call ThisWillFail()', ['E121:', 'E600:'])
! endfunc
  
  
  " Modeline                                                                {{{1
  " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
--- 2274,2299 ----
  endfunc
  
  func ThisWillFail()
! 
  endfunc
  
+ " This was crashing prior to the fix in 8.2.3478.
  func Test_error_in_catch_and_finally()
!   let lines =<< trim END
!     try
!       echo x
!     catch
!       for l in []
!     finally
!   END
!   call writefile(lines, 'XtestCatchAndFinally')
!   try
!     source XtestCatchAndFinally
!   catch /E600:/
!   endtry
  
+   call delete('XtestCatchAndFinally')
+ endfunc
  
  " Modeline                                                                {{{1
  " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
*** ../vim-8.2.3479/src/version.c       2021-10-05 19:19:31.963894252 +0100
--- src/version.c       2021-10-05 19:27:36.358619978 +0100
***************
*** 759,760 ****
--- 759,762 ----
  {   /* Add new patch number below this line */
+ /**/
+     3480,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
104. When people ask about the Presidential Election you ask "Which country?"

 /// 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/20211005182949.3F32AC80054%40pakwach.moolenaar.net.

Raspunde prin e-mail lui