qt6-bb10/tests/auto/corelib/thread
Marc Mutz f647375275 Fix signed integer overflows in tst_QAtomicInteger
Signed integer overflows and underflows are undefined
behavior. A test that invokes UB tests nothing, because
the standard permits any outcome.

Fix by guarding the respective operations so
they are not executed if they would overflow
or underflow.

Change-Id: I40354ee88f40e4b47b70eac7790dc3a79ac70a57
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-03-10 07:17:55 +00:00
..
qatomicint Tests: Do not rely on qCompare(bool, int,...). 2015-07-18 10:36:17 +00:00
qatomicinteger Fix signed integer overflows in tst_QAtomicInteger 2016-03-10 07:17:55 +00:00
qatomicpointer Update copyright headers 2015-02-11 06:49:51 +00:00
qfuture Tests: Replace Q[TRY]_VERIFY(v == true|false) by QVERIFY(v)|QVERIFY(!v). 2015-07-27 12:09:19 +00:00
qfuturesynchronizer Update copyright headers 2015-02-11 06:49:51 +00:00
qfuturewatcher Fix pauseEvents() test to test what should be true, not what is. 2015-11-02 09:40:32 +00:00
qmutex Update copyright headers 2015-02-11 06:49:51 +00:00
qmutexlocker Update copyright headers 2015-02-11 06:49:51 +00:00
qreadlocker Update copyright headers 2015-02-11 06:49:51 +00:00
qreadwritelock Update copyright headers 2015-02-11 06:49:51 +00:00
qresultstore Update copyright headers 2015-02-11 06:49:51 +00:00
qsemaphore Blacklist tryAcquireWithTimeout 2015-06-20 15:25:35 +00:00
qthread Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
qthreadonce Update copyright headers 2015-02-11 06:49:51 +00:00
qthreadpool tst_QThreadPool::tryStartCount(): Wait until tasks have finished. 2015-11-27 10:58:24 +00:00
qthreadstorage Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
qwaitcondition tst_QWaitCondition::wakeOne(): Increase wait interval. 2015-11-26 15:51:07 +00:00
qwritelocker Update copyright headers 2015-02-11 06:49:51 +00:00
thread.pro Replace the type-based QAtomicIntegerTraits with a size-based one 2014-01-30 18:06:27 +01:00