From 49ddae28e0dcd1c59dd5d742cffedd5290d1224a Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 24 Oct 2014 14:10:30 +0200 Subject: 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 --- tests/auto/other/toolsupport/tst_toolsupport.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/auto/other/toolsupport') 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") -- cgit v1.2.3