diff options
-rw-r--r-- | tests/auto/other/toolsupport/tst_toolsupport.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/other/toolsupport/tst_toolsupport.cpp b/tests/auto/other/toolsupport/tst_toolsupport.cpp index f93c8f825b..a78bdc34f1 100644 --- a/tests/auto/other/toolsupport/tst_toolsupport.cpp +++ b/tests/auto/other/toolsupport/tst_toolsupport.cpp @@ -124,7 +124,13 @@ void tst_toolsupport::offsets_data() { QTestData &data = QTest::newRow("QFilePrivate::fileName") << pmm_to_offsetof(&QFilePrivate::fileName); +#ifdef Q_PROCESSOR_X86 + // x86 32-bit has weird alignment rules. Refer to QtPrivate::AlignOf in + // qglobal.h for more details. data << 168 << 248; +#else + data << 172 << 248; +#endif } #endif |