Instead omit the whole test when Q_OS_MAC is defined.
Change-Id: I7d35c99ecd69b3c5bb8f8590342edd9665300709
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
// Map/unmap large file
void mapFile();
+#ifndef Q_OS_MAC
void mapOffsetOverflow();
+#endif
void closeFile() { largeFile.close(); }
QVERIFY( largeFile.unmap( baseAddress ) );
}
+//Mac: memory-mapping beyond EOF may succeed but it could generate bus error on access
+#ifndef Q_OS_MAC
void tst_LargeFile::mapOffsetOverflow()
{
-#if defined(Q_OS_MAC)
- QSKIP("mmap'ping beyond EOF may succeed; generate bus error on access");
-#endif
-
// Out-of-range mappings should fail, and not silently clip the offset
for (int i = 50; i < 63; ++i) {
uchar *address = 0;
QVERIFY( !address );
}
}
+#endif
QTEST_APPLESS_MAIN(tst_LargeFile)
#include "tst_largefile.moc"