2012-02-03 05:56:26 +00:00
|
|
|
SUBPROGRAMS = \
|
|
|
|
#alive \
|
|
|
|
assert \
|
|
|
|
badxml \
|
|
|
|
benchlibcallgrind \
|
2012-02-17 03:39:30 +00:00
|
|
|
benchlibcounting \
|
2012-02-03 05:56:26 +00:00
|
|
|
benchlibeventcounter \
|
|
|
|
benchliboptions \
|
|
|
|
benchlibtickcounter \
|
|
|
|
benchlibwalltime \
|
2015-04-28 11:40:26 +00:00
|
|
|
blacklisted \
|
2012-02-03 05:56:26 +00:00
|
|
|
cmptest \
|
|
|
|
commandlinedata \
|
|
|
|
counting \
|
|
|
|
crashes \
|
|
|
|
datatable \
|
|
|
|
datetime \
|
QTestLib: flush DeferredDelete events between every test
This makes qtestlib behave more like real Qt applications with an
event loop, where exiting the application does indeed flush deleteLaters.
And since every test method is supposed to be independent from other
test methods, we should even cleanup between tests.
For "app less" tests, no flushing happens.
Real life use cases:
* A unittest for some code (e.g. KIO job) which uses a socket, runs an
event loop until the socket communication is done, and ends. However
slotDisconnected() does, as recommended, socket->deleteLater(). So the
test finishes before the socket has a chance to actually get deleted,
and memory leak tools flag a memory leak, which doesn't actually happen
outside the unittest.
* Deleting a QWebEngineView with deleteLater is even worse than a memleak,
it leads to an assert (from a global object destructor) in QtWebEngine
if the view deletion hasn't actually been processed.
Change-Id: I18fc822fd26988a0fa4e75313c1947fcaa7d9e56
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2017-08-25 08:29:33 +00:00
|
|
|
deleteLater \
|
|
|
|
deleteLater_noApp \
|
2012-02-03 05:56:26 +00:00
|
|
|
differentexec \
|
|
|
|
exceptionthrow \
|
|
|
|
expectfail \
|
|
|
|
failcleanup \
|
|
|
|
failinit \
|
|
|
|
failinitdata \
|
|
|
|
fetchbogus \
|
|
|
|
findtestdata \
|
|
|
|
float \
|
|
|
|
globaldata \
|
|
|
|
longstring \
|
|
|
|
maxwarnings \
|
|
|
|
multiexec \
|
2017-03-28 06:56:24 +00:00
|
|
|
pairdiagnostics \
|
2012-02-03 05:56:26 +00:00
|
|
|
printdatatags \
|
|
|
|
printdatatagswithglobaltags \
|
|
|
|
qexecstringlist \
|
2012-02-27 06:31:03 +00:00
|
|
|
silent \
|
2012-02-03 05:56:26 +00:00
|
|
|
singleskip \
|
|
|
|
skip \
|
|
|
|
skipcleanup \
|
|
|
|
skipinit \
|
|
|
|
skipinitdata \
|
|
|
|
sleep \
|
|
|
|
strcmp \
|
|
|
|
subtest \
|
2017-12-07 08:46:30 +00:00
|
|
|
tuplediagnostics \
|
2012-03-01 01:01:49 +00:00
|
|
|
verbose1 \
|
|
|
|
verbose2 \
|
2013-10-11 10:05:01 +00:00
|
|
|
verifyexceptionthrown \
|
2012-02-03 05:56:26 +00:00
|
|
|
warnings \
|
2018-05-04 08:44:20 +00:00
|
|
|
xunit
|
2017-03-21 10:11:26 +00:00
|
|
|
|
2018-10-19 10:39:12 +00:00
|
|
|
qtHaveModule(gui): SUBPROGRAMS += \
|
|
|
|
keyboard \
|
|
|
|
mouse
|
|
|
|
|
2017-03-21 10:11:26 +00:00
|
|
|
INCLUDEPATH += ../../../../shared/
|
|
|
|
HEADERS += ../../../../shared/emulationdetector.h
|