qt5base-lts/tests/auto/network
Thiago Macieira c4b0ff4855 tst_QNetworkInterface: don't force an IPv4 link-local address
Windows apparently has special code to deal with those addresses. If all
your network interfaces are up and have acquired addresses, then the
link-local network at 169.254.0.0/16 is unreachable. I had never caught
this because both my Windows VM and my bare metal Windows have inactive
interfaces (like the Bluetooth PAN one) and, when inactive, Windows
assigns a link-local address. But in the CI, the interface(s) were all
up and running, causing this issue.

Unix systems don't treat IPv4 link-local any differently, so they always
worked, so long as any interface was up and there had to be one to reach
the network test server.

This commit reworks the test to add test addresses based on the
addresses found on up & running interfaces (see tst_qudpsocket.cpp). For
IPv4, we flip the bits in the local portion of the address. For IPv6, we
add a node with an address I generated randomly (non-universal), with
the same scope.

Fixes: QTBUG-65667
Change-Id: I568dea4813b448fe9ba6fffd15dd9f482db34991
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2019-12-07 10:20:27 -08:00
..
access Fix mis-handling of actual TLD in qIsEffectiveTLD() 2019-09-16 17:05:09 +02:00
bearer Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
kernel tst_QNetworkInterface: don't force an IPv4 link-local address 2019-12-07 10:20:27 -08:00
socket Disable debug-and-release builds for MinGW 2019-09-18 06:28:16 +00:00
ssl tst_qsslcertificate: fix subjectAndIssuerAttributes 2019-11-28 17:12:26 +01:00
network.pro Re-enable network tests on Mac OS. 2012-04-24 16:06:28 +02:00