qt6-bb10/tests/auto/network
Marc Mutz 20eba275d8 tst_QNetworkReply: don't leak on failure in emitErrorForAllReplies()
The old code allocated QSignalSpies on the heap and stored them in a
non-owning container, so if one of the many check macros trigger,
those objects would be leaked. Ditto QNetworkReplies. The code also
used dynamically-sized containers for statically-sized data; a common
anti-pattern.

Hold the sample QUrls in a C array instead, QSignalSpies in C arrays
of std::optional (to delay initialization) and QNetworkReplies in a C
array of std::unique_ptr with the existing QScopedPointerDeleteLater
deleter.

Pick-to: 6.7
Change-Id: I7305115af15c079abba6d45c5de8db2198ea7a6d
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2024-03-21 11:20:49 +01:00
..
access tst_QNetworkReply: don't leak on failure in emitErrorForAllReplies() 2024-03-21 11:20:49 +01:00
kernel tst_QHostInfo: increase the timeout to 15s 2024-03-13 18:29:12 -07:00
selftest Change license for tests files 2024-02-04 09:56:42 +01:00
socket UDP: don't disable read notification unless we have a datagram 2024-03-02 22:57:09 +01:00
ssl Correct license for tools files 2024-03-05 12:59:21 +01:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00