summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-11-05 15:15:26 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-11-05 15:15:26 (GMT)
commitc4d8d7fd35c8ac7fd2c14208e5e7ca0a35c101e1 (patch)
tree01f29efb678e9112cfd4104a6fe8163fa1666c20
parent49664f3ccc691e1be608fb8f922bda565da0fdab (diff)
downloadQt-c4d8d7fd35c8ac7fd2c14208e5e7ca0a35c101e1.zip
Qt-c4d8d7fd35c8ac7fd2c14208e5e7ca0a35c101e1.tar.gz
Qt-c4d8d7fd35c8ac7fd2c14208e5e7ca0a35c101e1.tar.bz2
Switch large file test to using Unbuffered mode
... so we test the file engine directly and detect file-system errors earlier.
-rw-r--r--tests/auto/qfile/largefile/tst_largefile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qfile/largefile/tst_largefile.cpp b/tests/auto/qfile/largefile/tst_largefile.cpp
index 53dbc12..8ab3275 100644
--- a/tests/auto/qfile/largefile/tst_largefile.cpp
+++ b/tests/auto/qfile/largefile/tst_largefile.cpp
@@ -312,10 +312,10 @@ void tst_LargeFile::createSparseFile()
int fd = ::_open_osfhandle((intptr_t)handle, 0);
QVERIFY( -1 != fd );
- QVERIFY( largeFile.open(fd, QIODevice::WriteOnly) );
+ QVERIFY( largeFile.open(fd, QIODevice::WriteOnly | QIODevice::Unbuffered) );
#else // !Q_OS_WIN
largeFile.setFileName("qt_largefile.tmp");
- QVERIFY( largeFile.open(QIODevice::WriteOnly) );
+ QVERIFY( largeFile.open(QIODevice::WriteOnly | QIODevice::Unbuffered) );
#endif
}