tst_QAtomicInt: do not check qlonglong alignment for x86_32 CPUs
For x86_32 the alignment of QBasicAtomicInteger<8 bytes> is not equal to the alignment of TypeInStruct<8 bytes>, so do not perform the check. Fixes: QTBUG-87422 Pick-to: 6.3 6.2 Change-Id: I6e6c6cb7b2b7195e430d6a6991004bcfce16d4cb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
a8a7f6c4e6
commit
68f7ba2150
|
|
@ -1,3 +0,0 @@
|
|||
# QTBUG-87422
|
||||
[alignment]
|
||||
android
|
||||
|
|
@ -242,7 +242,8 @@ void tst_QAtomicInt::alignment()
|
|||
QCOMPARE(alignof(QBasicAtomicInteger<char>), alignof(TypeInStruct<char>));
|
||||
#endif
|
||||
|
||||
#ifdef Q_ATOMIC_INT64_IS_SUPPORTED
|
||||
#if !defined(Q_PROCESSOR_X86_32) && defined(Q_ATOMIC_INT64_IS_SUPPORTED)
|
||||
// The alignment is different on x86_32
|
||||
QCOMPARE(alignof(QBasicAtomicInteger<qlonglong>), alignof(TypeInStruct<qlonglong>));
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue