qt5base-lts/src/testlib
Ulf Hermann 81c92aec66 QTestLog: Properly own the loggers
Previously, the loggers would leak if the application failed to call
stopLogging(). Now they are owned by the global static which will delete
them in that case.

Also, since we have to adapt loggerCount() to the fact that std::vector
uses size_t, recognize that we only ever want to know whether the number
of loggers is 0. Change the method to only provide that information
rather than the actual number.

Change-Id: Ieb2e185048d573ec7f36373ad49bb2a0ca391ce3
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-11-09 21:36:50 +01:00
..
3rdparty
doc Doc: Enable qdoc warning count limit 2021-10-21 19:10:52 +02:00
CMakeLists.txt testlib: Replace custom QTestCoreList with std::vector 2021-09-10 22:19:45 +02:00
configure.cmake
qabstractitemmodeltester.cpp Update QAbstractItemModelTester::FailureReportingMode documentation 2021-08-01 12:44:14 +02:00
qabstractitemmodeltester.h
qabstracttestlogger_p.h testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
qabstracttestlogger.cpp Tidy up QTest::qt_asprintf() and remove a spurious declaration 2021-10-01 19:24:31 +02:00
qappletestlogger_p.h
qappletestlogger.cpp testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
qasciikey.cpp Canonical pointer usage 2021-02-09 10:27:14 +08:00
qbenchmark_p.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qbenchmark.cpp
qbenchmark.h
qbenchmarkevent_p.h
qbenchmarkevent.cpp
qbenchmarkmeasurement_p.h
qbenchmarkmeasurement.cpp
qbenchmarkmetric_p.h
qbenchmarkmetric.cpp
qbenchmarkmetric.h
qbenchmarkperfevents_p.h
qbenchmarkperfevents.cpp
qbenchmarktimemeasurers_p.h
qbenchmarkvalgrind_p.h
qbenchmarkvalgrind.cpp
qcsvbenchmarklogger_p.h
qcsvbenchmarklogger.cpp
qemulationdetector_p.h Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
qjunittestlogger_p.h testlib: Replace custom QTestCoreList with std::vector 2021-09-10 22:19:45 +02:00
qjunittestlogger.cpp testlib: Gracefully handle messages outside of test function in JUnit reporter 2021-09-16 11:22:50 +02:00
qplaintestlogger_p.h
qplaintestlogger.cpp testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
qpropertytesthelper_p.h Include qproperty.h where needed 2021-11-04 21:45:02 +01:00
qsignaldumper_p.h
qsignaldumper.cpp
qsignalspy.h
qsignalspy.qdoc
qt_cmdline.cmake
qtaptestlogger_p.h
qtaptestlogger.cpp testlib: Don't report additional 'pass' test point for blacklisted XFail 2021-08-05 03:58:50 +02:00
qteamcitylogger_p.h
qteamcitylogger.cpp testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
qtest_gui.h QTest: there's no toString(QImage) 2021-07-07 15:07:55 +02:00
qtest_network.h
qtest_widgets.h
qtest.h QTest: support initMain() in QTEST_APPLESS_MAIN 2021-10-05 21:53:10 +02:00
qtestaccessible.h QTestAccessible: Clear objects in EventList when deleted 2021-05-23 10:46:03 +00:00
qtestassert.h
qtestblacklist_p.h
qtestblacklist.cpp testlib: Only consider major version for macOS 11 and later in blacklists 2021-02-03 19:21:01 +00:00
qtestcase.cpp QTestLog: Properly own the loggers 2021-11-09 21:36:50 +01:00
qtestcase.h Deprecate QTest::qWarn() and replace its last use 2021-09-23 16:57:03 +02:00
qtestcase.qdoc Clarify documentation of QEXPECT_FAIL()'s mode 2021-08-11 21:10:00 +02:00
qtestcoreelement_p.h testlib: Replace custom QTestCoreList with std::vector 2021-09-10 22:19:45 +02:00
qtestdata.cpp
qtestdata.h
qtestelement_p.h testlib: Replace custom QTestCoreList with std::vector 2021-09-10 22:19:45 +02:00
qtestelement.cpp testlib: Replace custom QTestCoreList with std::vector 2021-09-10 22:19:45 +02:00
qtestelementattribute_p.h testlib: Replace custom QTestCoreList with std::vector 2021-09-10 22:19:45 +02:00
qtestelementattribute.cpp testlib: Remove unused QTestCoreElement and QTestElementAttribute types 2021-08-10 16:06:36 +00:00
qtestevent.h
qtestevent.qdoc
qtesteventloop.h QTestEventLoop: stop when the test fails 2021-08-05 01:07:41 +02:00
qtesthelpers_p.h
qtestjunitstreamer_p.h QTestJunitStreamer: Include <vector> 2021-09-13 17:13:32 +02:00
qtestjunitstreamer.cpp testlib: Replace custom QTestCoreList with std::vector 2021-09-10 22:19:45 +02:00
qtestkeyboard.h Replace QTest::qWarn() with qWarning() 2021-09-23 16:57:03 +02:00
qtestlog_p.h QTestLog: Properly own the loggers 2021-11-09 21:36:50 +01:00
qtestlog.cpp QTestLog: Properly own the loggers 2021-11-09 21:36:50 +01:00
qtestmouse.cpp
qtestmouse.h Implement QTest:mouseMove widget overload to send event 2021-10-30 11:46:03 +02:00
qtestresult_p.h testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
qtestresult.cpp testlib: Let loggers know which test function is being left 2021-08-10 18:06:36 +02:00
qtestspontaneevent.h
qtestsystem.h
qtesttable_p.h
qtesttable.cpp
qtesttouch.h
qtestutil_macos_p.h
qtestutil_macos.mm
qttestglobal.h Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
qxctestlogger_p.h
qxctestlogger.mm
qxmltestlogger_p.h Clean up QXmlTestLogger's xmlQuote() and xmlCdata() 2021-10-01 19:24:31 +02:00
qxmltestlogger.cpp Use %.6g rather than %s and QByteArray::number() 2021-10-01 19:24:31 +02:00
selfcover.cmake