summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0471
blob: a0d8192cf4f1298d3f1230b256d25dc21b6b9466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0471
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0471
Problem:    Some tests are flaky or fail on some systems.
Solution:   Increase waiting time for port number. Use "cmd /c" to execute
            "echo" on win32. (Ken Takata, closes #3534)
Files:	    src/testdir/shared.vim, src/testdir/test_channel.vim


*** ../vim-8.1.0470/src/testdir/shared.vim	2018-05-05 15:42:51.000000000 +0200
--- src/testdir/shared.vim	2018-10-12 22:09:33.568424581 +0200
***************
*** 49,55 ****
  " Read the port number from the Xportnr file.
  func GetPort()
    let l = []
!   for i in range(200)
      try
        let l = readfile("Xportnr")
      catch
--- 49,56 ----
  " Read the port number from the Xportnr file.
  func GetPort()
    let l = []
!   " with 200 it sometimes failed
!   for i in range(400)
      try
        let l = readfile("Xportnr")
      catch
***************
*** 274,279 ****
--- 275,284 ----
    let cmd = GetVimCommand()
    let cmd = substitute(cmd, '-u NONE', '--clean', '')
    let cmd = substitute(cmd, '--not-a-term', '', '')
+ 
+   " Optionally run Vim under valgrind
+   " let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd
+ 
    return cmd
  endfunc
  
*** ../vim-8.1.0470/src/testdir/test_channel.vim	2018-10-07 21:36:07.389878130 +0200
--- src/testdir/test_channel.vim	2018-10-12 22:12:33.938703284 +0200
***************
*** 1340,1346 ****
      let self.ret['exit_cb'] = job_status(a:job)
    endfunc
  
!   let g:job = job_start('echo', {
          \ 'close_cb': g:retdict.close_cb,
          \ 'exit_cb': g:retdict.exit_cb,
          \ })
--- 1340,1346 ----
      let self.ret['exit_cb'] = job_status(a:job)
    endfunc
  
!   let g:job = job_start(has('win32') ? 'cmd /c echo:' : 'echo', {
          \ 'close_cb': g:retdict.close_cb,
          \ 'exit_cb': g:retdict.exit_cb,
          \ })
***************
*** 1369,1375 ****
    new
    let g:wipe_buf = bufnr('')
  
!   let job = job_start(['true'], {'exit_cb': 'ExitCbWipe'})
    let timer = timer_start(300, {-> feedkeys("\<Esc>", 'nt')}, {'repeat': 5})
    call feedkeys(repeat('g', 1000) . 'o', 'ntx!')
    call WaitForAssert({-> assert_equal("dead", job_status(job))})
--- 1369,1376 ----
    new
    let g:wipe_buf = bufnr('')
  
!   let job = job_start(has('win32') ? 'cmd /c echo:' : ['true'],
! 			  \ {'exit_cb': 'ExitCbWipe'})
    let timer = timer_start(300, {-> feedkeys("\<Esc>", 'nt')}, {'repeat': 5})
    call feedkeys(repeat('g', 1000) . 'o', 'ntx!')
    call WaitForAssert({-> assert_equal("dead", job_status(job))})
*** ../vim-8.1.0470/src/version.c	2018-10-11 19:27:43.920066119 +0200
--- src/version.c	2018-10-12 22:14:13.397766385 +0200
***************
*** 794,795 ****
--- 794,797 ----
  {   /* Add new patch number below this line */
+ /**/
+     471,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
191. You rate eating establishments not by the quality of the food,
     but by the availability of electrical outlets for your PowerBook.

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