File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323endif
2424
2525let s: port = -1
26+ let s: chopt = has (' macunix' ) ? {' waittime' : 1 } : {}
2627
2728func s: start_server ()
2829 " The Python program writes the port number in Xportnr.
@@ -60,7 +61,7 @@ func s:start_server()
6061 endif
6162 let s: port = l [0 ]
6263
63- let handle = ch_open (' localhost:' . s: port )
64+ let handle = ch_open (' localhost:' . s: port, s: chopt )
6465 return handle
6566endfunc
6667
@@ -155,7 +156,7 @@ func Test_two_channels()
155156 endif
156157 call assert_equal (' got it' , ch_sendexpr (handle, ' hello!' ))
157158
158- let newhandle = ch_open (' localhost:' . s: port )
159+ let newhandle = ch_open (' localhost:' . s: port, s: chopt )
159160 call assert_equal (' got it' , ch_sendexpr (newhandle, ' hello!' ))
160161 call assert_equal (' got it' , ch_sendexpr (handle, ' hello!' ))
161162
@@ -181,7 +182,7 @@ endfunc
181182" Test that trying to connect to a non-existing port fails quickly.
182183func Test_connect_waittime ()
183184 let start = reltime ()
184- let handle = ch_open (' localhost:9876' )
185+ let handle = ch_open (' localhost:9876' , s: chopt )
185186 if handle >= 0
186187 " Oops, port does exists.
187188 call ch_close (handle)
Original file line number Diff line number Diff line change @@ -747,6 +747,8 @@ static char *(features[]) =
747747
748748static int included_patches [] =
749749{ /* Add new patch number below this line */
750+ /**/
751+ 1297 ,
750752/**/
751753 1296 ,
752754/**/
You can’t perform that action at this time.
0 commit comments