diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-05-05 09:04:18 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-05-05 07:42:09 +0000 |
commit | 1346ffc15906b11aa74dc59e37893c813d18a8d4 (patch) | |
tree | a27dc4d0a227ac841700a04a539ffd7ea2065223 /tests | |
parent | 59161e22f224754323dfaea053b1dcdaaaf7d4ac (diff) | |
download | qt-creator-1346ffc15906b11aa74dc59e37893c813d18a8d4.tar.gz |
Dumper: Fix offsets for QFile members
Change-Id: I890b3f387505cf5acc8783e3dc7088515d6934cc
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/debugger/tst_offsets.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/auto/debugger/tst_offsets.cpp b/tests/auto/debugger/tst_offsets.cpp index 36beacd8e6..8490e90b2a 100644 --- a/tests/auto/debugger/tst_offsets.cpp +++ b/tests/auto/debugger/tst_offsets.cpp @@ -157,7 +157,17 @@ void tst_offsets::offsets_data() const int qtVersion = QT_VERSION; const quintptr qtTypeVersion = qtHookData[6]; - if (qtTypeVersion >= 20) + if (qtTypeVersion >= 22) +#ifdef Q_OS_WIN +# ifdef Q_CC_MSVC + OFFSET_TEST(QFilePrivate, fileName) << 0 << 424; +# else // MinGW + OFFSET_TEST(QFilePrivate, fileName) << 0 << 424; +# endif +#else + OFFSET_TEST(QFilePrivate, fileName) << 300 << 424; +#endif + else if (qtTypeVersion >= 20) #ifdef Q_OS_WIN # ifdef Q_CC_MSVC OFFSET_TEST(QFilePrivate, fileName) << 0 << 304; @@ -165,7 +175,7 @@ void tst_offsets::offsets_data() OFFSET_TEST(QFilePrivate, fileName) << 0 << 304; # endif #else - OFFSET_TEST(QFilePrivate, fileName) << 0 << 304; + OFFSET_TEST(QFilePrivate, fileName) << 196 << 304; #endif else if (qtVersion > 0x50600 && qtTypeVersion >= 17) #ifdef Q_OS_WIN |