equal
deleted
inserted
replaced
521 QVERIFY( largeFile.unmap( baseAddress ) ); |
521 QVERIFY( largeFile.unmap( baseAddress ) ); |
522 } |
522 } |
523 |
523 |
524 void tst_LargeFile::mapOffsetOverflow() |
524 void tst_LargeFile::mapOffsetOverflow() |
525 { |
525 { |
|
526 #if defined(Q_OS_MAC) |
|
527 QSKIP("mmap'ping beyond EOF may succeed; generate bus error on access", SkipAll); |
|
528 #endif |
|
529 |
526 // Out-of-range mappings should fail, and not silently clip the offset |
530 // Out-of-range mappings should fail, and not silently clip the offset |
527 for (int i = 50; i < 63; ++i) { |
531 for (int i = 50; i < 63; ++i) { |
528 uchar *address = 0; |
532 uchar *address = 0; |
529 |
533 |
530 address = largeFile.map(((qint64)1 << i), blockSize); |
534 address = largeFile.map(((qint64)1 << i), blockSize); |