Test: tst_QFile::writeLargeDataBlock() unstable failure as XFAIL
The current check is not enough to catch the unstable failure. Update the test to catch the failure in all cases. Task-number: QTBUG-26906 Change-Id: I2e37a1f6513df768cd410df7c91a9fd843150e57 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
This commit is contained in:
parent
01a985ac5b
commit
9f98fe04c1
@ -2273,7 +2273,7 @@ void tst_QFile::writeLargeDataBlock()
|
||||
qint64 fileWriteOriginalData = file.write(originalData);
|
||||
qint64 originalDataSize = (qint64)originalData.size();
|
||||
#if defined(Q_OS_WIN)
|
||||
if (fileWriteOriginalData == -1) {
|
||||
if (fileWriteOriginalData != originalDataSize) {
|
||||
qWarning() << qPrintable(QString("Error writing a large data block to [%1]: %2")
|
||||
.arg(fileName)
|
||||
.arg(file.errorString()));
|
||||
|
Loading…
Reference in New Issue
Block a user