test: simplify check of error message from getaddrinfo()
getaddrinfo() is a POSIX function that returns addrinfo structure in success and error value for the failure.POSIX standard [1] describes possible error values but description have a status of recommendation. When non-existent hostname is passed to getaddrinfo() it fails with error, but error value may be different on Linux and FreeBSD. We have testcases where we check error messages obtained from getaddinfo() ignoring this fact and sometime test fails on FreeBSD [2]. 1. https://pubs.opengroup.org/onlinepubs/9699919799/functions/freeaddrinfo.html 2. https://github.com/tarantool/tarantool/runs/2107188391 Part of #5652
Showing
- test/app/gh-4138-getaddrinfo-errors.result 1 addition, 12 deletionstest/app/gh-4138-getaddrinfo-errors.result
- test/app/gh-4138-getaddrinfo-errors.test.lua 1 addition, 12 deletionstest/app/gh-4138-getaddrinfo-errors.test.lua
- test/box/net.box_getaddrinfo_errors_gh-4138.result 2 additions, 13 deletionstest/box/net.box_getaddrinfo_errors_gh-4138.result
- test/box/net.box_getaddrinfo_errors_gh-4138.test.lua 2 additions, 13 deletionstest/box/net.box_getaddrinfo_errors_gh-4138.test.lua
- test/unit/coio.cc 1 addition, 23 deletionstest/unit/coio.cc
Loading
Please register or sign in to comment