Conditionally disable tests that depend on cxx11_future flag

Task-number: QTBUG-88392
Change-Id: Ic8451ca4052ec4a94f0d78307e1b32965eb18c4e
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
This commit is contained in:
Tony Sarajärvi 2020-11-16 09:33:25 +00:00
parent 76dc75c5ff
commit c9420aeeff

View File

@ -334,6 +334,9 @@ private:
void tst_QObjectRace::blockingQueuedDestroyRace() void tst_QObjectRace::blockingQueuedDestroyRace()
{ {
#if !QT_CONFIG(cxx11_future)
QSKIP("This test requires QThread::create");
#else
enum { MinIterations = 100, MinTime = 3000, WaitTime = 25 }; enum { MinIterations = 100, MinTime = 3000, WaitTime = 25 };
BlockingQueuedDestroyRaceObject sender; BlockingQueuedDestroyRaceObject sender;
@ -385,6 +388,7 @@ void tst_QObjectRace::blockingQueuedDestroyRace()
receiver->~BlockingQueuedDestroyRaceObject(); receiver->~BlockingQueuedDestroyRaceObject();
} }
#endif
} }
static QAtomicInteger<unsigned> countedStructObjectsCount; static QAtomicInteger<unsigned> countedStructObjectsCount;