Mercurial > vim
comparison src/testdir/test_channel.vim @ 8118:1f28be191fab v7.4.1353
commit https://github.com/vim/vim/commit/922d25f99c6d38e7f9cfca7a53ab841641517ebc
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 18 22:58:26 2016 +0100
patch 7.4.1353
Problem: Test_connect_waittime is skipped for MS-Windows.
Solution: Add the test back, it works now.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 18 Feb 2016 23:00:25 +0100 |
parents | 4aea0b0aa714 |
children | 310dd635e8c9 |
comparison
equal
deleted
inserted
replaced
8117:1a8ee36e2c56 | 8118:1f28be191fab |
---|---|
266 unlet s:chopt.callback | 266 unlet s:chopt.callback |
267 endfunc | 267 endfunc |
268 | 268 |
269 " Test that trying to connect to a non-existing port fails quickly. | 269 " Test that trying to connect to a non-existing port fails quickly. |
270 func Test_connect_waittime() | 270 func Test_connect_waittime() |
271 if !has('unix') | |
272 " TODO: Make this work again for MS-Windows. | |
273 return | |
274 endif | |
275 call ch_log('Test_connect_waittime()') | 271 call ch_log('Test_connect_waittime()') |
276 let start = reltime() | 272 let start = reltime() |
277 let handle = ch_open('localhost:9876', s:chopt) | 273 let handle = ch_open('localhost:9876', s:chopt) |
278 if ch_status(handle) != "fail" | 274 if ch_status(handle) != "fail" |
279 " Oops, port does exists. | 275 " Oops, port does exists. |