test: update test20/1322 for eglibc bug workaround

The tests 20 and 1322 are using getaddrinfo of libc for resolving. In
eglibc-2.19 there is a memory leakage and invalid free bug which
surfaces in some special circumstances (PF_UNSPEC hint with invalid or
non-existent names). The valgrind runs in testing fail in these
situations.

As the tests 20/1322 are not specific on either protocol (IPv4/IPv6)
this commit changes the hints to IPv4 protocol by passing `--ipv4` flag
on the tests' command line.  This prevents the valgrind failures.
This commit is contained in:
Tobias Hintze 2018-11-13 15:49:28 +01:00 committed by Daniel Stenberg
parent 5b4cce2e36
commit 9944d6ba33
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ http
HTTP with --resolve and hostname with trailing dot
</name>
<command>
--resolve example.com:%HTTPPORT:%HOSTIP http://example.com.:%HTTPPORT/1322
--ipv4 --resolve example.com.:%HTTPPORT:%HOSTIP http://example.com.:%HTTPPORT/1322
</command>
</client>

View File

@ -25,7 +25,7 @@ http
attempt connect to non-existing host name
</name>
<command>
non-existing-host.haxx.se.
--ipv4 non-existing-host.haxx.se.
</command>
</client>