diff options
author | hjk <hjk121@nokiamail.com> | 2014-10-24 14:10:30 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-10-25 11:49:12 +0200 |
commit | 49ddae28e0dcd1c59dd5d742cffedd5290d1224a (patch) | |
tree | 48361e386e5125f744e0681afa763ea92aad788d /tests/auto/other/toolsupport | |
parent | eaa4496efab49844dfe3b46ada73cc02f99dba7a (diff) |
Add a test for QFilePrivate::fileName offset on Linux
This extends the test suite introduced in 497f0af1f7 for
a known-to-be-good case.
Change-Id: Ib574ecfdb8e9d91985d6df8c092896581d1d06ff
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests/auto/other/toolsupport')
-rw-r--r-- | tests/auto/other/toolsupport/tst_toolsupport.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/other/toolsupport/tst_toolsupport.cpp b/tests/auto/other/toolsupport/tst_toolsupport.cpp index 1b5aa1b247..d4ee3f4c50 100644 --- a/tests/auto/other/toolsupport/tst_toolsupport.cpp +++ b/tests/auto/other/toolsupport/tst_toolsupport.cpp @@ -110,6 +110,14 @@ void tst_toolsupport::offsets_data() data << 0 << 0; } +#ifdef Q_OS_LINUX + if (sizeof(void *) == 8) { + QTestData &data = QTest::newRow("QFilePrivate::fileName") + << pmm_to_offsetof(&QFilePrivate::fileName); + data << -1 << 272; + } +#endif + { #ifdef Q_OS_WIN QTest::newRow("QDateTimePrivate::m_msecs") |