]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Don't test octal localhost IP in sockettest on macOS
authorRoman Bolshakov <r.bolshakov@yadro.com>
Wed, 21 Aug 2019 16:13:13 +0000 (19:13 +0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 23 Aug 2019 10:26:26 +0000 (11:26 +0100)
commit0f1b090b0d56d92e9af51530627cb7456390adf4
treec942c0ba0250f25dbb96e22af7d860e3d0ff11c3
parent51f27ef789cfba7ede0516379549dfd666cc0c49
tests: Don't test octal localhost IP in sockettest on macOS

getaddrinfo on macOS doesn't interpret octal IPv4 addresses. Only
inet_aton can be used for that. Therefore, from macOS standpoint
"0177.0.0.01" is not the same as "127.0.0.1".

The issue was also discovered by python and dotnet core:
  https://bugs.python.org/issue27612
  https://github.com/dotnet/corefx/issues/8362

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
tests/sockettest.c