Skip to content

Commit 43cb8e1

Browse files
jamessanchrisbra
authored andcommitted
patch 9.0.2082: test_channel may fail because of IPv6 config issue
Problem: test_channel may fail because of IPv6 config issues Solution: Catch and skip the test, if getaddrinfo() fails with 'Address family not supported' Mark tests as skipped when ch_open encounters E901 On some of the Debian build systems, the IPv6 channel tests fail because `ch_open('[::1]:<port>', ...)` raises the error "E901: getaddrinfo() in channel_open(): Address family for hostname not supported". This appears to happen because getaddrinfo() can't perform the reverse lookup for the ::1, which is a config issue on that system. Therefore, instead of reporting a test failure, mark the test as skipped due to the bad network config closes: #13473 Signed-off-by: James McCoy <jamessan@jamessan.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 1bf1bf5 commit 43cb8e1

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/testdir/shared.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ func RunServer(cmd, testfunc, args)
113113
endif
114114

115115
call call(function(a:testfunc), [port])
116+
catch /E901.*Address family for hostname not supported/
117+
throw 'Skipped: Invalid network setup ("' .. v:exception .. '" in ' .. v:throwpoint .. ')'
116118
catch
117119
call assert_report('Caught exception: "' . v:exception . '" in ' . v:throwpoint)
118120
finally

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
2082,
707709
/**/
708710
2081,
709711
/**/

0 commit comments

Comments
 (0)