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
Ivan Solovev 2022-03-23 15:01:51 +01:00
parent a8a7f6c4e6
commit 68f7ba2150
2 changed files with 2 additions and 4 deletions

View File

@ -1,3 +0,0 @@
# QTBUG-87422
[alignment]
android

View File

@ -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
}