Patch 8.2.4885 (after 8.2.4884)
Problem:    Test fails with the job/channel feature.
Solution:   Move check for job/channel separately.
Files:      src/testdir/test_vim9_script.vim


*** ../vim-8.2.4884/src/testdir/test_vim9_script.vim    2022-05-06 
13:27:05.136335099 +0100
--- src/testdir/test_vim9_script.vim    2022-05-06 13:35:42.903799806 +0100
***************
*** 4199,4208 ****
    var Var_func: func
    var var_string: string
    var var_blob: blob
-   if has('job')
-     var var_job: job
-     var var_channel: channel
-   endif
    var var_list: list<any>
    var var_dict: dict<any>
  
--- 4199,4204 ----
***************
*** 4213,4231 ****
    echo Var_func
    echo var_string
    echo var_blob
-   if has('job')
-     echo var_job
-     echo var_channel
-   else
-     echo 'no process'
-     echo 'channel fail'
-   endif
    echo var_list
    echo var_dict
    redir END
  
!   assert_equal(['false', '0', '0.0', 'function()', '', '0z', 'no process',
!     'channel fail', '[]', '{}'], res->split('\n'))
  enddef
  
  " Keep this last, it messes up highlighting.
--- 4209,4231 ----
    echo Var_func
    echo var_string
    echo var_blob
    echo var_list
    echo var_dict
    redir END
  
!   assert_equal(['false', '0', '0.0', 'function()', '', '0z', '[]', '{}'], 
res->split('\n'))
! 
!   if has('job')
!     var var_job: job
!     var var_channel: channel
! 
!     redir => res
!     echo var_job
!     echo var_channel
!     redir END
! 
!     assert_equal(['no process', 'channel fail'], res->split('\n'))
!   endif
  enddef
  
  " Keep this last, it messes up highlighting.
*** ../vim-8.2.4884/src/version.c       2022-05-06 13:27:05.136335099 +0100
--- src/version.c       2022-05-06 13:37:22.291696370 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4885,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
114. You are counting items, you go "0,1,2,3,4,5,6,7,8,9,A,B,C,D...".

 /// 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/20220506123809.6275B1C03B1%40moolenaar.net.

Raspunde prin e-mail lui