summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfile/tst_qfile.cpp
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-08-21 20:17:34 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-24 20:25:34 (GMT)
commit33a1992cc9935aff180437d3f2385706c23f0baa (patch)
tree1762ddd8c43d189580e3516e978bb9301517c458 /tests/auto/qfile/tst_qfile.cpp
parent33ee8dff49fa89b83ce793974208304fd19dc367 (diff)
downloadQt-33a1992cc9935aff180437d3f2385706c23f0baa.zip
Qt-33a1992cc9935aff180437d3f2385706c23f0baa.tar.gz
Qt-33a1992cc9935aff180437d3f2385706c23f0baa.tar.bz2
test: Mark tst_QFile::writeLargeDataBlock() unstable failure as XFAIL
The test has one unstable failure on Windows, so mark this with QEXPECT_FAIL Task-number: QTBUG-26906 Change-Id: I2f6c63ddefecacd224d93f83e6951e961a02a051 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> (cherry picked from qtbase/531b96f42ef225f6f680f6049ab718b0f6729a3d) Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'tests/auto/qfile/tst_qfile.cpp')
-rw-r--r--tests/auto/qfile/tst_qfile.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp
index dc77cf9..3ed3fe5 100644
--- a/tests/auto/qfile/tst_qfile.cpp
+++ b/tests/auto/qfile/tst_qfile.cpp
@@ -2414,7 +2414,17 @@ void tst_QFile::writeLargeDataBlock()
QVERIFY2( openFile(file, QIODevice::WriteOnly, (FileType)type),
qPrintable(QString("Couldn't open file for writing: [%1]").arg(fileName)) );
- QCOMPARE( file.write(originalData), (qint64)originalData.size() );
+ qint64 fileWriteOriginalData = file.write(originalData);
+ qint64 originalDataSize = (qint64)originalData.size();
+#if defined(Q_OS_WIN)
+ if (fileWriteOriginalData == -1) {
+ qWarning() << qPrintable(QString("Error writing a large data block to [%1]: %2")
+ .arg(fileName)
+ .arg(file.errorString()));
+ QEXPECT_FAIL("unc file", "QTBUG-26906", Abort);
+ }
+#endif
+ QCOMPARE( fileWriteOriginalData, originalDataSize );
QVERIFY( file.flush() );
closeFile(file);