1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-10 11:35:07 -05:00
curl/tests/data/test20
Tobias Hintze 9944d6ba33
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.
2018-11-22 13:41:35 +01:00

39 lines
432 B
Plaintext

<testcase>
<info>
<keywords>
HTTP
FAILURE
non-existing host
</keywords>
</info>
# Server-side
<reply>
<data>
</data>
</reply>
# Client-side
<client>
<server>
none
</server>
<features>
http
</features>
<name>
attempt connect to non-existing host name
</name>
<command>
--ipv4 non-existing-host.haxx.se.
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<errorcode>
6
</errorcode>
</verify>
</testcase>