It's illegal to call elapsed() or restart() (sic) on a non-started QElapsedTimer, so don't do that. In QNAM code, this has been observed by adding assertions into QElapsedTimer, which then make network tests crash. (While I am unable to run the network testsuite, this is reproducible locally by running tst_QNetworkDiskCache::setCookieHeader). The QTextStream test also calls restart() without a start(), but then it calls elapsed()+start() which is the whole point of restart(), so amend accordingly. Pick-to: 6.8 6.5 Change-Id: I5cfe308f64b631b68b92843b409777a6b9176828 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 585471b138b195cb9020200cae760f119903df85) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%