Patch 8.2.2180
Problem:    Vim9: test for error after error is flaky.
Solution:   Wait for job to finish instead of a fixed delay.
Files:      src/testdir/test_vim9_script.vim


*** ../vim-8.2.2179/src/testdir/test_vim9_script.vim    2020-12-20 
21:10:13.902437880 +0100
--- src/testdir/test_vim9_script.vim    2020-12-21 18:09:55.745938695 +0100
***************
*** 3096,3102 ****
            source += l
        enddef
        var myjob = job_start('echo burp', {out_cb: Out_cb, exit_cb: Exit_cb, 
mode: 'raw'})
!       sleep 100m
    END
    writefile(lines, 'Xdef')
    assert_fails('so Xdef', ['E684:', 'E1012:'])
--- 3096,3105 ----
            source += l
        enddef
        var myjob = job_start('echo burp', {out_cb: Out_cb, exit_cb: Exit_cb, 
mode: 'raw'})
!       while job_status(myjob) == 'run'
!         sleep 10m
!       endwhile
!       sleep 10m
    END
    writefile(lines, 'Xdef')
    assert_fails('so Xdef', ['E684:', 'E1012:'])
*** ../vim-8.2.2179/src/version.c       2020-12-21 17:30:46.941668485 +0100
--- src/version.c       2020-12-21 18:10:55.753757297 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2180,
  /**/

-- 
Engineers understand that their appearance only bothers other people and
therefore it is not worth optimizing.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202012211711.0BLHBqYP2288680%40masaka.moolenaar.net.

Raspunde prin e-mail lui